This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).
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_vertices : bool, optional
Add the Voronoi vertices to the plot.
Returns: fig : matplotlib.figure.Figure instance
Figure for the plot
See also
Notes
Requires Matplotlib.