Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
util
sequencer
scan-p-gun-vgrid
Commits
21d7b441
Commit
21d7b441
authored
May 28, 2022
by
Francesco Tripaldi
Browse files
Change default graph color
parent
755d7637
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ScanPGunVgrid.py
View file @
21d7b441
...
...
@@ -131,8 +131,8 @@ def main():
if
plot_best_vgrid
==
True
:
plt
.
plot
(
best_vgrid
,
best_current
,
marker
=
"o"
,
markersize
=
15
,
markeredgecolor
=
"red"
,
markerfacecolor
=
"green"
)
plt
.
text
(
scan_start
+
((
scan_stop
-
scan_start
)
/
2
),
0.05
,
'Best Vgrid: '
+
f
'
{
best_vgrid
:.
2
f
}
'
+
'V'
,
fontsize
=
12
,
bbox
=
dict
(
facecolor
=
'red'
,
alpha
=
0.5
))
plt
.
scatter
(
X
,
Y
,
label
=
"GUN Vgrid scan data"
)
plt
.
plot
(
xp
,
p
(
xp
),
label
=
"Fitting"
)
plt
.
scatter
(
X
,
Y
,
label
=
"GUN Vgrid scan data"
,
color
=
"blue"
)
plt
.
plot
(
xp
,
p
(
xp
),
label
=
"Fitting"
,
color
=
"orange"
)
#plt.plot(xp,y_conv[:-3], label = "2nd order derivate")
plt
.
title
(
str
(
graph_title
))
plt
.
xlabel
(
'GUN Vgrid'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment