From ae9bce665c9d1a3e91f02cec0a08be7e6c332727 Mon Sep 17 00:00:00 2001 From: HashSplat Date: Wed, 9 Aug 2017 14:36:50 -0400 Subject: [PATCH] Fixed issue where setData only updated opts if data is given --- pyqtgraph/graphicsItems/PlotDataItem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyqtgraph/graphicsItems/PlotDataItem.py b/pyqtgraph/graphicsItems/PlotDataItem.py index d7ea5100..c5b642fb 100644 --- a/pyqtgraph/graphicsItems/PlotDataItem.py +++ b/pyqtgraph/graphicsItems/PlotDataItem.py @@ -442,6 +442,8 @@ class PlotDataItem(GraphicsObject): if y is None: + self.updateItems() + profiler('update items') return if y is not None and x is None: x = np.arange(len(y))