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

Function test_patheffect1

lib/matplotlib/tests/test_patheffects.py:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14@image_comparison(['patheffect1'], remove_text=True, style='mpl20')
15def 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',

Callers

nothing calls this directly

Calls 4

imshowMethod · 0.80
annotateMethod · 0.80
set_path_effectsMethod · 0.80
gridMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…