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

View File

@ -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()