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

Method buffer_rgba

lib/matplotlib/backends/backend_agg.py:461–468  ·  view source on GitHub ↗

Get the image as a `memoryview` to the renderer's buffer. `draw` must be called at least once before this function will work and to update the renderer for any subsequent changes to the Figure.

(self)

Source from the content-addressed store, hash-verified

459 return self.renderer.tostring_argb()
460
461 def buffer_rgba(self):
462 """
463 Get the image as a `memoryview` to the renderer's buffer.
464
465 `draw` must be called at least once before this function will work and
466 to update the renderer for any subsequent changes to the Figure.
467 """
468 return self.renderer.buffer_rgba()
469
470 def print_raw(self, filename_or_obj, *, metadata=None):
471 if metadata is not None:

Callers 1

_print_pilMethod · 0.95

Calls 1

buffer_rgbaMethod · 0.45

Tested by

no test coverage detected