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

Function test_legend_bar

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

Source from the content-addressed store, hash-verified

20
21@image_comparison(['legend_bar.png'], remove_text=True, style='mpl20')
22def test_legend_bar():
23 fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
24 x = np.arange(10)
25 b1 = ax.bar(x, x, zdir='y', align='edge', color='m')
26 b2 = ax.bar(x, x[::-1], zdir='x', align='edge', color='g')
27 ax.legend([b1[0], b2[0]], ['up', 'down'])
28
29
30@image_comparison(['fancy.png'], remove_text=True, style='mpl20',

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
barMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…