Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
labcode
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CST
labcode
Commits
ed1c9237
Commit
ed1c9237
authored
11 months ago
by
Alexandros Asonitis
Browse files
Options
Downloads
Patches
Plain Diff
Friday's Changes during test of double gate software
parent
4748b7a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hp4155/ADU for double gate devices/lib/help.py
+41
-38
41 additions, 38 deletions
hp4155/ADU for double gate devices/lib/help.py
with
41 additions
and
38 deletions
hp4155/ADU for double gate devices/lib/help.py
+
41
−
38
View file @
ed1c9237
...
@@ -164,6 +164,7 @@ def calculate_line(VTG,VBG):
...
@@ -164,6 +164,7 @@ def calculate_line(VTG,VBG):
# replot results
# replot results
def
replot_results
(
replot_dict
,
df
,
points
,
title
):
def
replot_results
(
replot_dict
,
df
,
points
,
title
):
try
:
if
len
(
df
.
columns
.
tolist
())
!=
0
and
replot_dict
[
'
check
'
].
value
==
True
:
# Measurement is done
if
len
(
df
.
columns
.
tolist
())
!=
0
and
replot_dict
[
'
check
'
].
value
==
True
:
# Measurement is done
fig
,
ax
=
plt
.
subplots
(
figsize
=
(
10
,
6
))
fig
,
ax
=
plt
.
subplots
(
figsize
=
(
10
,
6
))
...
@@ -182,7 +183,7 @@ def replot_results(replot_dict,df,points,title):
...
@@ -182,7 +183,7 @@ def replot_results(replot_dict,df,points,title):
if
replot_dict
[
'
y_scale
'
].
value
==
'
linear
'
:
if
replot_dict
[
'
y_scale
'
].
value
==
'
linear
'
:
y
=
np
.
array_split
(
df
[
y_col
],
points
)
y
=
np
.
array_split
(
df
[
y_col
],
points
)
else
:
else
:
y
=
np
.
array_split
(
y
[
x
_col
].
abs
(),
points
)
y
=
np
.
array_split
(
df
[
y
_col
].
abs
(),
points
)
ax
.
set_yscale
(
'
log
'
)
ax
.
set_yscale
(
'
log
'
)
# check auto limits
# check auto limits
...
@@ -202,6 +203,8 @@ def replot_results(replot_dict,df,points,title):
...
@@ -202,6 +203,8 @@ def replot_results(replot_dict,df,points,title):
fig
.
suptitle
(
title
,
fontweight
=
"
bold
"
)
fig
.
suptitle
(
title
,
fontweight
=
"
bold
"
)
display
(
fig
)
display
(
fig
)
except
:
information_box
(
"
reploting failed please try again
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment