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