()
| 40 | |
| 41 | |
| 42 | def test_plot_polygon(): |
| 43 | poly = box(0, 0, 1, 1) |
| 44 | artist, _ = plot_polygon(poly) |
| 45 | plot_coords = artist.get_path().vertices |
| 46 | assert_allclose(plot_coords, get_coordinates(poly)) |
| 47 | |
| 48 | # overriding default styling |
| 49 | artist = plot_polygon(poly, add_points=False, color="red", linewidth=3) |
| 50 | assert equal_color(artist.get_facecolor(), "red", alpha=0.3) |
| 51 | assert equal_color(artist.get_edgecolor(), "red", alpha=1.0) |
| 52 | assert artist.get_linewidth() == 3 |
| 53 | |
| 54 | |
| 55 | def test_plot_polygon_with_interior(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…