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

Function _get_simplified

lib/matplotlib/tests/test_simplification.py:94–104  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

92
93def test_antiparallel_simplification():
94 def _get_simplified(x, y):
95 fig, ax = plt.subplots()
96 p1 = ax.plot(x, y)
97
98 path = p1[0].get_path()
99 transform = p1[0].get_transform()
100 path = transform.transform_path(path)
101 simplified = path.cleaned(simplify=True)
102 simplified = transform.inverted().transform_path(simplified)
103
104 return simplified
105
106 # test ending on a maximum
107 x = [0, 0, 0, 0, 0, 1]

Callers 1

Calls 7

cleanedMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
get_pathMethod · 0.45
get_transformMethod · 0.45
transform_pathMethod · 0.45
invertedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…