| 32 | @image_comparison(['patheffect2'], remove_text=True, style='mpl20', |
| 33 | tol=0.051 if sys.platform == 'darwin' else 0) |
| 34 | def test_patheffect2(): |
| 35 | |
| 36 | ax2 = plt.subplot() |
| 37 | arr = np.arange(25).reshape((5, 5)) |
| 38 | ax2.imshow(arr, interpolation='nearest') |
| 39 | cntr = ax2.contour(arr, colors="k") |
| 40 | cntr.set(path_effects=[path_effects.withStroke(linewidth=3, foreground="w")]) |
| 41 | |
| 42 | clbls = ax2.clabel(cntr, fmt="%2.0f", use_clabeltext=True) |
| 43 | plt.setp(clbls, |
| 44 | path_effects=[path_effects.withStroke(linewidth=3, |
| 45 | foreground="w")]) |
| 46 | |
| 47 | |
| 48 | @image_comparison(['patheffect3'], style='mpl20', |