Startup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user