mirror of
https://github.com/m-labs/artiq.git
synced 2025-01-07 17:43:34 +08:00
plot_xy: un-randomize the fit plot
This commit is contained in:
parent
1d3c0166da
commit
ca24e00400
@ -45,7 +45,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