mirror of https://github.com/m-labs/artiq.git
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):
|
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()
|
||||||
|
|
Loading…
Reference in New Issue