()
| 99 | |
| 100 | |
| 101 | def test_plot_points(): |
| 102 | for geom in [Point(0, 0), LineString([(0, 0), (1, 0), (1, 1)]), box(0, 0, 1, 1)]: |
| 103 | artist = plot_points(geom) |
| 104 | plot_coords = artist.get_path().vertices |
| 105 | assert_allclose(plot_coords, get_coordinates(geom)) |
| 106 | assert artist.get_linestyle() == "None" |
| 107 | |
| 108 | # overriding default styling |
| 109 | geom = Point(0, 0) |
| 110 | artist = plot_points(geom, color="red", marker="+", fillstyle="top") |
| 111 | assert artist.get_color() == "red" |
| 112 | assert artist.get_marker() == "+" |
| 113 | assert artist.get_fillstyle() == "top" |
| 114 | |
| 115 | |
| 116 | def equal_color(actual, expected, alpha=None): |
nothing calls this directly
no test coverage detected
searching dependent graphs…