MCPcopy Index your code
hub / github.com/plotly/plotly.py / draw_axes

Method draw_axes

plotly/matplotlylib/mplexporter/renderers/base.py:51–60  ·  view source on GitHub ↗
(self, ax, props)

Source from the content-addressed store, hash-verified

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

Callers 1

crawl_axMethod · 0.80

Calls 2

open_axesMethod · 0.95
close_axesMethod · 0.95

Tested by

no test coverage detected