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)
| 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: |