Create a new PGF renderer that translates any drawing instruction into text commands to be interpreted in a latex pgfpicture environment. Attributes ---------- figure : `~matplotlib.figure.Figure` Matplotlib figure to initialize height, width and
(self, figure, fh)
| 376 | class RendererPgf(RendererBase): |
| 377 | |
| 378 | def __init__(self, figure, fh): |
| 379 | """ |
| 380 | Create a new PGF renderer that translates any drawing instruction |
| 381 | into text commands to be interpreted in a latex pgfpicture environment. |
| 382 | |
| 383 | Attributes |
| 384 | ---------- |
| 385 | figure : `~matplotlib.figure.Figure` |
| 386 | Matplotlib figure to initialize height, width and dpi from. |
| 387 | fh : file-like |
| 388 | File handle for the output of the drawing commands. |
| 389 | """ |
| 390 | |
| 391 | super().__init__() |
| 392 | self.dpi = figure.dpi |
| 393 | self.fh = fh |
| 394 | self.figure = figure |
| 395 | self.image_counter = 0 |
| 396 | |
| 397 | def draw_markers(self, gc, marker_path, marker_trans, path, trans, |
| 398 | rgbFace=None): |