mirror of https://github.com/m-labs/artiq.git
applets/plot_xy: use numpy array for default X axis. Closes #458
This commit is contained in:
parent
e6a351c5ea
commit
5b0f963b98
|
@ -19,7 +19,7 @@ class XYPlot(pyqtgraph.PlotWidget):
|
||||||
return
|
return
|
||||||
x = data.get(self.args.x, (False, None))[1]
|
x = data.get(self.args.x, (False, None))[1]
|
||||||
if x is None:
|
if x is None:
|
||||||
x = list(range(len(y)))
|
x = np.arange(len(y))
|
||||||
error = data.get(self.args.error, (False, None))[1]
|
error = data.get(self.args.error, (False, None))[1]
|
||||||
fit = data.get(self.args.fit, (False, None))[1]
|
fit = data.get(self.args.fit, (False, None))[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue