forked from M-Labs/artiq
1
0
Fork 0

gui/rt_results: do not attempt to plot before receiving data

This commit is contained in:
Sebastien Bourdeauducq 2015-01-28 16:28:13 +08:00
parent 71c5115c11
commit 906099c978
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ class XYWindow(_PlotWindow):
def set_data(self, data): def set_data(self, data):
self.data = data self.data = data
if not self.data:
return
# The two axes are not updated simultaneously. # The two axes are not updated simultaneously.
# Redraw only after receiving a new point for each. # Redraw only after receiving a new point for each.
x, y = self.filter_data() x, y = self.filter_data()