| 30 | @image_comparison(['fancy.png'], remove_text=True, style='mpl20', |
| 31 | tol=0.01 if sys.platform == 'darwin' else 0) |
| 32 | def 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 | |
| 41 | def test_linecollection_scaled_dashes(): |