MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_legend_plot

Function test_legend_plot

lib/mpl_toolkits/mplot3d/tests/test_legend3d.py:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@image_comparison(['legend_plot.png'], remove_text=True, style='mpl20')
13def test_legend_plot():
14 fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
15 x = np.arange(10)
16 ax.plot(x, 5 - x, 'o', zdir='y', label='z=1')
17 ax.plot(x, x - 5, 'o', zdir='y', label='z=-1')
18 ax.legend()
19
20
21@image_comparison(['legend_bar.png'], remove_text=True, style='mpl20')

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…