Script execution

This commit is contained in:
x03daop
2017-04-12 12:20:20 +02:00
parent 31c657a8a4
commit 80bf529658

View File

@@ -114,13 +114,13 @@ def plot_cur_spectrum():
global live_plots
global current_region_index
try:
print live_plots
while get_context().state.running:
y = Scienta.spectrum.take(100)
x = Scienta.spectrumX
#spectrum_series.setData(x, y)
try:
live_plots[current_region_index].setData(x, y)
series = live_plots[current_region_index].getSeries(0)
series.setData(x, y)
except IndexError:
pass
time.sleep(1.0)