()
| 13 | |
| 14 | @image_comparison(['patheffect1'], remove_text=True, style='mpl20') |
| 15 | def test_patheffect1(): |
| 16 | ax1 = plt.subplot() |
| 17 | ax1.imshow([[1, 2], [2, 3]]) |
| 18 | txt = ax1.annotate("test", (1., 1.), (0., 0), |
| 19 | arrowprops=dict(arrowstyle="->", |
| 20 | connectionstyle="angle3", lw=2), |
| 21 | size=20, ha="center", |
| 22 | path_effects=[path_effects.withStroke(linewidth=3, |
| 23 | foreground="w")]) |
| 24 | txt.arrow_patch.set_path_effects([path_effects.Stroke(linewidth=5, |
| 25 | foreground="w"), |
| 26 | path_effects.Normal()]) |
| 27 | |
| 28 | pe = [path_effects.withStroke(linewidth=3, foreground="w")] |
| 29 | ax1.grid(True, linestyle="-", path_effects=pe) |
| 30 | |
| 31 | |
| 32 | @image_comparison(['patheffect2'], remove_text=True, style='mpl20', |
nothing calls this directly
no test coverage detected
searching dependent graphs…