Skip to content

Commit a4a3685

Browse files
Merge pull request #1069 from flowln/fix_pyqtgraph_0_13_4
Fix plotting on pyqtgraph 0.13.4
2 parents abdaa14 + c542d71 commit a4a3685

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydm/widgets/multi_axis_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from collections import Counter
33
from pyqtgraph import AxisItem, PlotDataItem, PlotItem, ViewBox
44
from typing import List, Optional
5+
from qtpy.QtCore import Qt
56
from .multi_axis_viewbox import MultiAxisViewBox
67
from .multi_axis_viewbox_menu import MultiAxisViewBoxMenu
78
from ..utilities import is_qt_designer
@@ -36,7 +37,7 @@ def __init__(self, parent=None, axisItems=None, **kargs):
3637
# in order to support multiple axes on the same plot. This set will remain empty if the plot has only
3738
# one set of axes
3839
self.stackedViews = weakref.WeakSet()
39-
viewBox.sigResized.connect(self.updateStackedViews)
40+
viewBox.sigResized.connect(self.updateStackedViews, Qt.QueuedConnection)
4041

4142
# Signals that will be emitted when mouse wheel or mouse drag events happen
4243
self.vb.sigMouseDragged.connect(self.handleMouseDragEvent)

0 commit comments

Comments
 (0)