Wrapper on :class:`PGM.render()` that calls `matplotlib.show()` immediately after. :param dpi: (optional) The DPI value to use for rendering.
(self, dpi=None, *args, **kwargs)
| 463 | return self._ctx.ax() |
| 464 | |
| 465 | def show(self, dpi=None, *args, **kwargs): |
| 466 | """ |
| 467 | Wrapper on :class:`PGM.render()` that calls `matplotlib.show()` |
| 468 | immediately after. |
| 469 | |
| 470 | :param dpi: (optional) |
| 471 | The DPI value to use for rendering. |
| 472 | |
| 473 | """ |
| 474 | |
| 475 | self.render(dpi=dpi) |
| 476 | plt.show(*args, **kwargs) |
| 477 | |
| 478 | def savefig(self, fname, *args, **kwargs): |
| 479 | """ |