scipy.spatial.voronoi_plot_2d

scipy.spatial.voronoi_plot_2d(vor, ax=None)[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

Returns :

fig : matplotlib.figure.Figure instance

Figure for the plot

See also

Voronoi

Notes

Requires Matplotlib.

Previous topic

scipy.spatial.convex_hull_plot_2d

Next topic

scipy.spatial.tsearch