(self, ax, props)
| 49 | |
| 50 | @contextmanager |
| 51 | def draw_axes(self, ax, props): |
| 52 | if hasattr(self, "_current_ax") and self._current_ax is not None: |
| 53 | warnings.warn("axes embedded in axes: something is wrong") |
| 54 | self._current_ax = ax |
| 55 | self._ax_props = props |
| 56 | self.open_axes(ax=ax, props=props) |
| 57 | yield |
| 58 | self.close_axes(ax=ax) |
| 59 | self._current_ax = None |
| 60 | self._ax_props = {} |
| 61 | |
| 62 | @contextmanager |
| 63 | def draw_legend(self, legend, props): |
no test coverage detected