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

Method draw_figure

plotly/matplotlylib/mplexporter/renderers/base.py:39–48  ·  view source on GitHub ↗
(self, fig, props)

Source from the content-addressed store, hash-verified

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

Callers 1

crawl_figMethod · 0.80

Calls 2

open_figureMethod · 0.95
close_figureMethod · 0.95

Tested by

no test coverage detected