MCPcopy Index your code
hub / github.com/shapely/shapely / test_plot_points

Function test_plot_points

shapely/tests/test_plotting.py:101–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def 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
116def equal_color(actual, expected, alpha=None):

Callers

nothing calls this directly

Calls 5

PointClass · 0.90
LineStringClass · 0.90
boxFunction · 0.90
plot_pointsFunction · 0.90
get_coordinatesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…