MCPcopy
hub / github.com/matplotlib/matplotlib / test_fancy

Function test_fancy

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

Source from the content-addressed store, hash-verified

30@image_comparison(['fancy.png'], remove_text=True, style='mpl20',
31 tol=0.01 if sys.platform == 'darwin' else 0)
32def test_fancy():
33 fig, ax = plt.subplots(subplot_kw=dict(projection='3d'))
34 ax.plot(np.arange(10), np.full(10, 5), np.full(10, 5), 'o--', label='line')
35 ax.scatter(np.arange(10), np.arange(10, 0, -1), label='scatter')
36 ax.errorbar(np.full(10, 5), np.arange(10), np.full(10, 10),
37 xerr=0.5, zerr=0.5, label='errorbar')
38 ax.legend(loc='lower left', ncols=2, title='My legend', numpoints=1)
39
40
41def test_linecollection_scaled_dashes():

Callers

nothing calls this directly

Calls 5

subplotsMethod · 0.45
plotMethod · 0.45
scatterMethod · 0.45
errorbarMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…