shapely.plotting.patch_from_polygon

shapely.plotting.patch_from_polygon#

patch_from_polygon(polygon, **kwargs)#

Gets a Matplotlib patch from a (Multi)Polygon.

Note: this function is experimental, and mainly targeting (interactive) exploration, debugging and illustration purposes.

Parameters:
polygonshapely.Polygon or shapely.MultiPolygon
**kwargs

Additional keyword arguments passed to the matplotlib Patch.

Returns:
Matplotlib artist (PathPatch)