Skip to content

Commit

Permalink
applets/plot_xy: use numpy array for default X axis. Closes #458
Browse files Browse the repository at this point in the history
sbourdeauducq committed May 31, 2016
1 parent f537562 commit eeab7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/applets/plot_xy.py
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ def data_changed(self, data, mods):
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]

0 comments on commit eeab7db

Please sign in to comment.