This commit is contained in:
2020-03-18 08:28:43 +01:00
parent ec2a09a430
commit 04a5fade85
2 changed files with 10 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
#Tue Mar 17 10:07:24 CET 2020
FdaBrowser=true
ScanIndex=5
geometry=fourcv
#Wed Mar 18 08:28:34 CET 2020
test=1
geometry=fourcv
ScanIndex=5
FdaBrowser=true

View File

@@ -7,7 +7,7 @@ def start_plot():
p = plot([None, None, None,None, None], ["TEY", "TFY", "TEYraw", "TFYraw", "I0"])
def _update_plots(x, s0, s1, s2, s3, s4):
def _update_plots(p, x, s0, s1, s2, s3, s4):
p[0].getSeries(0).setData(x, s0)
p[1].getSeries(0).setData(x, s1)
p[2].getSeries(0).setData(x, s2)
@@ -43,11 +43,11 @@ def update_plot():
tey=map(l, teyr, i0)
tfy=map(l, tfyr, i0)
args = [ x, to_array(tey,'d'),
to_array(tfy,'d'),
to_array(teyr,'d'),
to_array(tfyr,'d'),
to_array(i0,'d')]
args = [ p, x, to_array(tey,'d'),
to_array(tfy,'d'),
to_array(teyr,'d'),
to_array(tfyr,'d'),
to_array(i0,'d')]
if INVOKE_PLOT_UPDATES:
invoke([_update_plots, args])
else: