From 37bcd5ab7efdcc1947e148d4db28f0573e835baa Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 8 Apr 2016 01:21:59 +0800 Subject: [PATCH] plot_xy: fix errorbar plot --- artiq/applets/plot_xy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/applets/plot_xy.py b/artiq/applets/plot_xy.py index a176c80bc..e00f1813d 100755 --- a/artiq/applets/plot_xy.py +++ b/artiq/applets/plot_xy.py @@ -43,7 +43,8 @@ class XYPlot(pyqtgraph.PlotWidget): # See https://github.com/pyqtgraph/pyqtgraph/issues/211 if hasattr(error, "__len__") and not isinstance(error, np.ndarray): error = np.array(error) - errbars = pg.ErrorBarItem(x=np.array(x), y=np.array(y), height=error) + errbars = pyqtgraph.ErrorBarItem( + x=np.array(x), y=np.array(y), height=error) self.addItem(errbars) if fit is not None: xi = np.argsort(x)