From 906099c978fda12517a46a12a261145390e267eb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 28 Jan 2015 16:28:13 +0800 Subject: [PATCH] gui/rt_results: do not attempt to plot before receiving data --- artiq/gui/rt_results.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/gui/rt_results.py b/artiq/gui/rt_results.py index 74c4bd014..1f3d83297 100644 --- a/artiq/gui/rt_results.py +++ b/artiq/gui/rt_results.py @@ -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()