From 787ed65d00cd0e2a6de70713a8d888e450e16535 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 6502a004d..5fa7d7e8a 100755 --- a/artiq/applets/plot_xy.py +++ b/artiq/applets/plot_xy.py @@ -42,7 +42,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)