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 472a046 commit 258832aCopy full SHA for 258832a
lib/matplotlib/backends/backend_qt5agg.py
@@ -39,11 +39,12 @@ def paintEvent(self, event):
39
40
painter = QtGui.QPainter(self)
41
try:
42
- # See documentation of QRect: bottom() and right() are off by 1, so use
43
- # left() + width() and top() + height().
+ # See documentation of QRect: bottom() and right() are off
+ # by 1, so use left() + width() and top() + height().
44
rect = event.rect()
45
# scale rect dimensions using the screen dpi ratio to get
46
- # correct values for the Figure coordinates (rather than QT5's coords)
+ # correct values for the Figure coordinates (rather than
47
+ # QT5's coords)
48
width = rect.width() * self._dpi_ratio
49
height = rect.height() * self._dpi_ratio
50
left, top = self.mouseEventCoords(rect.topLeft())
0 commit comments