forked from M-Labs/artiq
1
0
Fork 0

applets/plot_xy: use numpy array for default X axis. Closes #458

This commit is contained in:
Sebastien Bourdeauducq 2016-05-30 22:48:32 -05:00
parent f537562768
commit eeab7db3d4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class XYPlot(pyqtgraph.PlotWidget):
return
x = data.get(self.args.x, (False, None))[1]
if x is None:
x = list(range(len(y)))
x = np.arange(len(y))
error = data.get(self.args.error, (False, None))[1]
fit = data.get(self.args.fit, (False, None))[1]