Skip to content

Commit

Permalink
gui/rt_results: do not attempt to plot before receiving data
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jan 28, 2015
1 parent 71c5115 commit 906099c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions artiq/gui/rt_results.py
Original file line number Diff line number Diff line change
@@ -50,6 +50,8 @@ def filter_data(self):

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

0 comments on commit 906099c

Please sign in to comment.