()
| 654 | |
| 655 | |
| 656 | def test_contains_point(): |
| 657 | ell = mpatches.Ellipse((0.5, 0.5), 0.5, 1.0) |
| 658 | points = [(0.0, 0.5), (0.2, 0.5), (0.25, 0.5), (0.5, 0.5)] |
| 659 | path = ell.get_path() |
| 660 | transform = ell.get_transform() |
| 661 | radius = ell._process_radius(None) |
| 662 | expected = np.array([path.contains_point(point, |
| 663 | transform, |
| 664 | radius) for point in points]) |
| 665 | result = np.array([ell.contains_point(point) for point in points]) |
| 666 | assert np.all(result == expected) |
| 667 | |
| 668 | |
| 669 | def test_contains_points(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…