Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db54c0 commit 3c5cbd8Copy full SHA for 3c5cbd8
lib/matplotlib/backends/backend_qt5agg.py
@@ -41,6 +41,8 @@ def paintEvent(self, event):
41
# See documentation of QRect: bottom() and right() are off by 1, so use
42
# left() + width() and top() + height().
43
rect = event.rect()
44
+ # scale rect dimensions using the screen dpi ratio to get
45
+ # correct values for the Figure coordinates (rather than QT5's coords)
46
width = rect.width() * self._dpi_ratio
47
height = rect.height() * self._dpi_ratio
48
left, top = self.mouseEventCoords(rect.topLeft())
0 commit comments