MCPcopy Create free account
hub / github.com/shapely/shapely / test_patch_from_polygon

Function test_patch_from_polygon

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

Source from the content-addressed store, hash-verified

16
17
18def test_patch_from_polygon():
19 poly = box(0, 0, 1, 1)
20 artist = patch_from_polygon(poly, facecolor="red", edgecolor="blue", linewidth=3)
21 assert equal_color(artist.get_facecolor(), "red")
22 assert equal_color(artist.get_edgecolor(), "blue")
23 assert artist.get_linewidth() == 3
24
25
26def test_patch_from_polygon_with_interior():

Callers

nothing calls this directly

Calls 3

boxFunction · 0.90
patch_from_polygonFunction · 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…