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

Function test_plot_line

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

Source from the content-addressed store, hash-verified

77
78
79def test_plot_line():
80 line = LineString([(0, 0), (1, 0), (1, 1)])
81 artist, _ = plot_line(line)
82 plot_coords = artist.get_path().vertices
83 assert_allclose(plot_coords, get_coordinates(line))
84
85 # overriding default styling
86 artist = plot_line(line, add_points=False, color="red", linewidth=3)
87 assert equal_color(artist.get_edgecolor(), "red")
88 assert equal_color(artist.get_facecolor(), "none")
89 assert artist.get_linewidth() == 3
90
91
92def test_plot_multilinestring():

Callers

nothing calls this directly

Calls 4

LineStringClass · 0.90
plot_lineFunction · 0.90
get_coordinatesFunction · 0.90
equal_colorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…