252f4135799027f9ae887e8fd87e3af906187a22,lib/matplotlib/backends/backend_qt5agg.py,FigureCanvasQTAgg,paintEvent,#FigureCanvasQTAgg#Any#,22

Before Change


        else:
            painter.eraseRect(self.rect())
            bbox_queue = [
                Bbox([[0, 0], [self.renderer.width, self.renderer.height]])]
        self._bbox_queue = []
        for bbox in bbox_queue:
            l, b, r, t = map(int, bbox.extents)

After Change


            self._erase_before_paint = False

        rect = event.rect()
        left = rect.left()
        top = rect.top()
        width = rect.width()
        height = rect.height()
        // See documentation of QRect: bottom() and right() are off by 1, so use
        // left() + width() and top() + height().
        bbox = Bbox([[left, self.renderer.height - (top + height)],
                     [left + width, self.renderer.height - top]])
        reg = self.copy_from_bbox(bbox)
        buf = reg.to_string_argb()
        qimage = QtGui.QImage(buf, width, height, QtGui.QImage.Format_ARGB32)
        if hasattr(qimage, "setDevicePixelRatio"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: 252f4135799027f9ae887e8fd87e3af906187a22
Time: 2018-07-16
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5agg.py
Class Name: FigureCanvasQTAgg
Method Name: paintEvent


Project Name: matplotlib/matplotlib
Commit Name: c2aabe9d86e667579f7c87be54d2894e9acb10e6
Time: 2017-02-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/transforms.py
Class Name: BboxBase
Method Name: splity


Project Name: matplotlib/matplotlib
Commit Name: c2aabe9d86e667579f7c87be54d2894e9acb10e6
Time: 2017-02-20
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/transforms.py
Class Name: BboxBase
Method Name: splitx