mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
plot_xy: fix missing x values handling
Signed-off-by: Florian Agbuya <fa@m-labs.ph>
This commit is contained in:
parent
a167cc6043
commit
ff79854c46
@ -24,11 +24,11 @@ class XYPlot(pyqtgraph.PlotWidget):
|
||||
y = value[self.args.y]
|
||||
except KeyError:
|
||||
return
|
||||
x = value.get(self.args.x, (False, None))
|
||||
x = value.get(self.args.x)
|
||||
if x is None:
|
||||
x = np.arange(len(y))
|
||||
error = value.get(self.args.error, (False, None))
|
||||
fit = value.get(self.args.fit, (False, None))
|
||||
error = value.get(self.args.error)
|
||||
fit = value.get(self.args.fit)
|
||||
|
||||
if not len(y) or len(y) != len(x):
|
||||
self.mismatch['X values'] = True
|
||||
|
Loading…
Reference in New Issue
Block a user