(x, y)
| 92 | |
| 93 | def 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] |
no test coverage detected
searching dependent graphs…