()
| 667 | |
| 668 | |
| 669 | def test_contains_points(): |
| 670 | ell = mpatches.Ellipse((0.5, 0.5), 0.5, 1.0) |
| 671 | points = [(0.0, 0.5), (0.2, 0.5), (0.25, 0.5), (0.5, 0.5)] |
| 672 | path = ell.get_path() |
| 673 | transform = ell.get_transform() |
| 674 | radius = ell._process_radius(None) |
| 675 | expected = path.contains_points(points, transform, radius) |
| 676 | result = ell.contains_points(points) |
| 677 | assert np.all(result == expected) |
| 678 | |
| 679 | |
| 680 | # Currently fails with pdf/svg, probably because some parts assume a dpi of 72. |
nothing calls this directly
no test coverage detected
searching dependent graphs…