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

Function test_legend

plotly/matplotlylib/mplexporter/tests/test_basic.py:210–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208
209
210def test_legend():
211 fig, ax = plt.subplots()
212 ax.plot([1, 2, 3], label="label")
213 ax.legend().set_visible(False)
214 _assert_output_equal(
215 fake_renderer_output(fig, FakeRenderer),
216 """
217 opening figure
218 opening axes
219 draw path with 3 vertices
220 opening legend
221 closing legend
222 closing axes
223 closing figure
224 """,
225 )
226
227
228def test_legend_dots():

Callers

nothing calls this directly

Calls 4

_assert_output_equalFunction · 0.85
fake_renderer_outputFunction · 0.85
subplotsMethod · 0.80
legendMethod · 0.45

Tested by

no test coverage detected