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

Method draw_legend

plotly/matplotlylib/mplexporter/renderers/base.py:63–70  ·  view source on GitHub ↗
(self, legend, props)

Source from the content-addressed store, hash-verified

61
62 @contextmanager
63 def draw_legend(self, legend, props):
64 self._current_legend = legend
65 self._legend_props = props
66 self.open_legend(legend=legend, props=props)
67 yield
68 self.close_legend(legend=legend)
69 self._current_legend = None
70 self._legend_props = {}
71
72 # Following are the functions which should be overloaded in subclasses
73

Callers 1

crawl_axMethod · 0.80

Calls 2

open_legendMethod · 0.95
close_legendMethod · 0.95

Tested by

no test coverage detected