From 5b0f963b9889484135f717c7ed7c5d0335d1d88f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 30 May 2016 22:48:32 -0500 Subject: [PATCH] applets/plot_xy: use numpy array for default X axis. Closes #458 --- artiq/applets/plot_xy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/applets/plot_xy.py b/artiq/applets/plot_xy.py index e00f1813d..97f32c7dc 100755 --- a/artiq/applets/plot_xy.py +++ b/artiq/applets/plot_xy.py @@ -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]