MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / blit

Method blit

lib/matplotlib/backends/backend_qt.py:506–513  ·  view source on GitHub ↗
(self, bbox=None)

Source from the content-addressed store, hash-verified

504 QtCore.QTimer.singleShot(0, self._draw_idle)
505
506 def blit(self, bbox=None):
507 # docstring inherited
508 if bbox is None and self.figure:
509 bbox = self.figure.bbox # Blit the entire canvas if bbox is None.
510 # repaint uses logical pixels, not physical pixels like the renderer.
511 l, b, w, h = (int(pt / self.device_pixel_ratio) for pt in bbox.bounds)
512 t = b + h
513 self.repaint(l, self.rect().height() - t, w, h)
514
515 def _draw_idle(self):
516 with self._idle_draw_cntx():

Callers 5

_blitFunction · 0.45
drawMethod · 0.45
test_blitFunction · 0.45

Calls 1

heightMethod · 0.80

Tested by 3

test_blitFunction · 0.36