forked from M-Labs/artiq
plot_xy: un-randomize the fit plot
This commit is contained in:
parent
d6beec1a55
commit
3e6a8a20c3
@ -46,7 +46,8 @@ class XYPlot(pyqtgraph.PlotWidget):
|
||||
errbars = pg.ErrorBarItem(x=np.array(x), y=np.array(y), height=error)
|
||||
self.addItem(errbars)
|
||||
if fit is not None:
|
||||
self.plot(x, fit)
|
||||
xi = np.argsort(x)
|
||||
self.plot(x[xi], fit[xi])
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
Reference in New Issue
Block a user