forked from M-Labs/artiq
gui/rt_results: do not attempt to plot before receiving data
This commit is contained in:
parent
71c5115c11
commit
906099c978
|
@ -50,6 +50,8 @@ class XYWindow(_PlotWindow):
|
|||
|
||||
def set_data(self, data):
|
||||
self.data = data
|
||||
if not self.data:
|
||||
return
|
||||
# The two axes are not updated simultaneously.
|
||||
# Redraw only after receiving a new point for each.
|
||||
x, y = self.filter_data()
|
||||
|
|
Loading…
Reference in New Issue