scipy.spatial.voronoi_plot_2d

scipy.spatial.voronoi_plot_2d(vor, ax=None, **kw)[source]

Plot the given Voronoi diagram in 2-D

Parameters:

vor : scipy.spatial.Voronoi instance

Diagram to plot

ax : matplotlib.axes.Axes instance, optional

Axes to plot on

show_points: bool, optional

Add the Voronoi points to the plot.

show_vertices : bool, optional

Add the Voronoi vertices to the plot.

line_colors : string, optional

Specifies the line color for polygon boundaries

line_width : float, optional

Specifies the line width for polygon boundaries

line_alpha: float, optional

Specifies the line alpha for polygon boundaries

Returns:

fig : matplotlib.figure.Figure instance

Figure for the plot

See also

Voronoi

Notes

Requires Matplotlib.