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

Function test_fancy

lib/matplotlib/tests/test_legend.py:207–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205@image_comparison(['fancy.png'], remove_text=True, style='mpl20',
206 tol=0.01 if sys.platform == 'darwin' else 0)
207def test_fancy():
208 # using subplot triggers some offsetbox functionality untested elsewhere
209 plt.subplot(121)
210 plt.plot([5] * 10, 'o--', label='XX')
211 plt.scatter(np.arange(10), np.arange(10, 0, -1), label='XX\nXX')
212 plt.errorbar(np.arange(10), np.arange(10), xerr=0.5,
213 yerr=0.5, label='XX')
214 plt.legend(loc="center left", bbox_to_anchor=[1.0, 0.5],
215 ncols=2, shadow=True, title="My legend", numpoints=1)
216
217
218@image_comparison(['framealpha'], remove_text=True, style='mpl20',

Callers

nothing calls this directly

Calls 4

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…