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

Function test_simplify_curve

lib/matplotlib/tests/test_simplification.py:238–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236@image_comparison(['simplify_curve'], remove_text=True, style='_classic_test',
237 tol=0.017)
238def test_simplify_curve():
239 pp1 = patches.PathPatch(
240 Path([(0, 0), (1, 0), (1, 1), (np.nan, 1), (0, 0), (2, 0), (2, 2),
241 (0, 0)],
242 [Path.MOVETO, Path.CURVE3, Path.CURVE3, Path.CURVE3, Path.CURVE3,
243 Path.CURVE3, Path.CURVE3, Path.CLOSEPOLY]),
244 fc="none")
245
246 fig, ax = plt.subplots()
247 ax.add_patch(pp1)
248 ax.set_xlim(0, 2)
249 ax.set_ylim(0, 2)
250
251
252@check_figures_equal(extensions=['png', 'pdf', 'svg'])

Callers

nothing calls this directly

Calls 5

PathClass · 0.90
add_patchMethod · 0.80
subplotsMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…