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 10ffa53 commit 871a97aCopy full SHA for 871a97a
lib/matplotlib/backends/backend_qt5agg.py
@@ -64,7 +64,7 @@ def paintEvent(self, event):
64
painter.drawImage(origin / self._dpi_ratio, qimage)
65
# Adjust the buf reference count to work around a memory
66
# leak bug in QImage under PySide on Python 3.
67
- if QT_API == 'PySide':
+ if QT_API in ('PySide', 'PySide2'):
68
ctypes.c_long.from_address(id(buf)).value = 1
69
70
self._draw_rect_callback(painter)
0 commit comments