shapely.plotting.plot_points

Contents

shapely.plotting.plot_points#

plot_points(geom, ax=None, color=None, marker='o', **kwargs)#

Plot a Point/MultiPoint or the vertices of any other geometry type.

Parameters:
geomshapely.Geometry

Any shapely Geometry object, from which all vertices are extracted and plotted.

axmatplotlib Axes, default None

The axes on which to draw the plot. If not specified, will get the current active axes or create a new figure.

colormatplotlib color specification

Color for the filled points. You can use markeredgecolor and markerfacecolor to have different edge and fill colors.

markerstr, default “o”

The matplotlib marker for the points.

**kwargs

Additional keyword arguments passed to matplotlib plot (Line2D).

Returns:
Matplotlib artist (Line2D)