17ff6bae82f5e080f94c4b34a637c30e563d505c,lib/matplotlib/backends/backend_qt5agg.py,FigureCanvasQTAgg,paintEvent,#FigureCanvasQTAgg#Any#,23

Before Change



            qimage = QtGui.QImage(buf, buf.shape[1], buf.shape[0],
                                  QtGui.QImage.Format_ARGB32_Premultiplied)
            if hasattr(qimage, "setDevicePixelRatio"):
                // Not available on Qt4 or some older Qt5.
                qimage.setDevicePixelRatio(self._dpi_ratio)
            // set origin using original QT coordinates
            origin = QtCore.QPoint(rect.left(), rect.top())
            painter.drawImage(origin, qimage)
            // Adjust the buf reference count to work around a memory
            // leak bug in QImage under PySide on Python 3.

After Change



            qimage = QtGui.QImage(buf, buf.shape[1], buf.shape[0],
                                  QtGui.QImage.Format_ARGB32_Premultiplied)
            _setDevicePixelRatioF(qimage, self._dpi_ratio)
            // set origin using original QT coordinates
            origin = QtCore.QPoint(rect.left(), rect.top())
            painter.drawImage(origin, qimage)
            // Adjust the buf reference count to work around a memory
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 17ff6bae82f5e080f94c4b34a637c30e563d505c
Time: 2020-06-15
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/backends/backend_qt5agg.py
Class Name: FigureCanvasQTAgg
Method Name: paintEvent


Project Name: matplotlib/matplotlib
Commit Name: bbd3cf695c6f4244feb44b44f3232931bf7b6539
Time: 2020-06-15
Author: jklymak@gmail.com
File Name: lib/matplotlib/backends/backend_qt5cairo.py
Class Name: FigureCanvasQTCairo
Method Name: paintEvent


Project Name: matplotlib/matplotlib
Commit Name: 17ff6bae82f5e080f94c4b34a637c30e563d505c
Time: 2020-06-15
Author: 2836374+timhoffm@users.noreply.github.com
File Name: lib/matplotlib/backends/backend_qt5cairo.py
Class Name: FigureCanvasQTCairo
Method Name: paintEvent


Project Name: matplotlib/matplotlib
Commit Name: bbd3cf695c6f4244feb44b44f3232931bf7b6539
Time: 2020-06-15
Author: jklymak@gmail.com
File Name: lib/matplotlib/backends/backend_qt5agg.py
Class Name: FigureCanvasQTAgg
Method Name: paintEvent