Skip to content
Snippets Groups Projects
Commit 43e1efef authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

ADU final version with new files

parent 88f68b08
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "91b007d1c3f34b39b4bc4d4fc430fcbf",
=======
"model_id": "085dce1f59214d188b41662aa105b2d3",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -23,7 +27,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "a989b58d9fa44eb0827c087afd0c5efe",
=======
"model_id": "f6fd1f84320f406bb08c41951d62bdf5",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -44,7 +52,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "5fb4ecee398f4c0ebff2e7b679b525fe",
=======
"model_id": "b512386ba3cf42c98b8fd13325cd8791",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -65,7 +77,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "6a08c9595e524587a810c29bb75c713e",
=======
"model_id": "e4a53ef64f184afd9ece9bf61f16a992",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -86,7 +102,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "fde2af87a1934f37b1ec1d7bf43a2dff",
=======
"model_id": "d142f057b2124fcebe3175fa8971677c",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -100,7 +120,11 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
<<<<<<< HEAD
"model_id": "1f8f0870133d44468fd31fa1ab9434cf",
=======
"model_id": "07df3b7af50443eca87e6c8059763b52",
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
"version_major": 2,
"version_minor": 0
},
......@@ -119,7 +143,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "0331b265-0fe6-4749-ac85-099509f735ea",
"id": "d480980e-f36a-4096-89b0-f65fe874d8a6",
"metadata": {},
"outputs": [],
"source": []
......
......@@ -25,7 +25,7 @@ def plot_transfer(x,y1,y2,curves,norm_unit='mA/mm'):
for i in range(curves):
ax1.plot(x[i], y1[i], color = color)
#ax1.plot(Vgs, Idmm, color = color)
ax1.tick_params(axis ='y', labelcolor = color,which = 'both')
ax1.tick_params(axis ='y', labelcolor = color)
# Adding Twin Axes
ax2 = ax1.twinx()
......@@ -35,13 +35,19 @@ def plot_transfer(x,y1,y2,curves,norm_unit='mA/mm'):
ax2.set_ylabel('$g_{m} (mS/mm)$', color = color)
else:
ax2.set_ylabel('$g_{m} (uS/um)$', color = color)
for i in range(curves):
ax1.plot(x[i], y2[i], color = color)
ax2.plot(x[i], y2[i], color = color)
#ax2.plot(Vgs, gm, color = color)
ax2.tick_params(axis ='y', labelcolor = color,which = 'both')
ax2.tick_params(axis ='y', labelcolor = color)
# Adding title
<<<<<<< HEAD
plt.title('Transfer Curve', fontweight ="bold")
=======
fig.suptitle('Transfer Curve', fontweight ="bold")
fig.tight_layout()
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
# Show plot
display(fig)
......@@ -60,9 +66,10 @@ def plot_output(x,y1,y2,curves,norm_unit = "mA/mm"):
ax1.set_ylabel('$I_{D} (mA/mm)$', color = color)
else:
ax1.set_ylabel('$I_{D} (uA/um)$', color = color)
for i in range(curves):
ax1.plot(x[i],y1[i],color=color)
ax1.tick_params(axis ='y', labelcolor = color,which = 'both')
ax1.tick_params(axis ='y', labelcolor = color)
ax2 = ax1.twinx()
color = 'tab:green'
......@@ -70,11 +77,18 @@ def plot_output(x,y1,y2,curves,norm_unit = "mA/mm"):
ax2.set_ylabel('$I_{G} (mA/mm)$', color = color)
else:
ax2.set_ylabel('$I_{G} (uA/um)$', color = color)
for i in range(curves):
ax2.plot(x[i], y2[i], color = color)
ax2.tick_params(axis ='y', labelcolor = color,which = 'both')
ax2.tick_params(axis ='y', labelcolor = color)
<<<<<<< HEAD
plt.title("Output Curve",fontweight ="bold")
=======
fig.suptitle("Output Curve",fontweight ="bold")
fig.tight_layout()
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
display(fig)
def plot_gatediode(x,y,norm_unit = "mA/mm"):
......@@ -91,9 +105,14 @@ def plot_gatediode(x,y,norm_unit = "mA/mm"):
y = np.absolute(y)
ax1.plot(x,y, color = color)
ax1.tick_params(axis ='y', labelcolor = color,which = 'both')
ax1.tick_params(axis ='y', labelcolor = color)
<<<<<<< HEAD
plt.title('Gatediode Curve', fontweight ="bold")
=======
fig.suptitle('Gatediode Curve', fontweight ="bold")
fig.tight_layout()
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
display(fig)
......
......@@ -167,6 +167,18 @@ class HP4155a(object):
def stop_measurement(self):
self.inst.write(":PAGE:SCON:STOP")
<<<<<<< HEAD
=======
# list to save variables in files up to 8 variables
def variables_to_save(self,variables_list):
command = ":PAGE:DISP:LIST "
for index,variable in enumerate(variables_list):
command = command + f"{repr(variable)}"
if index != len(variables_list)-1:
command = command + ","
self.inst.write(command)
>>>>>>> 7e1febb (fixed matplotlib bug plotting in transfer curve)
#delete all user functions
def del_user_functions(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment