(self, fig, props)
| 37 | |
| 38 | @contextmanager |
| 39 | def draw_figure(self, fig, props): |
| 40 | if hasattr(self, "_current_fig") and self._current_fig is not None: |
| 41 | warnings.warn("figure embedded in figure: something is wrong") |
| 42 | self._current_fig = fig |
| 43 | self._fig_props = props |
| 44 | self.open_figure(fig=fig, props=props) |
| 45 | yield |
| 46 | self.close_figure(fig=fig) |
| 47 | self._current_fig = None |
| 48 | self._fig_props = {} |
| 49 | |
| 50 | @contextmanager |
| 51 | def draw_axes(self, ax, props): |
no test coverage detected