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

Function test_patheffect2

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

Source from the content-addressed store, hash-verified

32@image_comparison(['patheffect2'], remove_text=True, style='mpl20',
33 tol=0.051 if sys.platform == 'darwin' else 0)
34def 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',

Callers

nothing calls this directly

Calls 4

imshowMethod · 0.80
contourMethod · 0.45
setMethod · 0.45
clabelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…