spatial._plotutils

Module Contents

Functions

_held_figure(func,obj,ax=None,**kw)
_adjust_bounds(ax,points)
delaunay_plot_2d(tri,ax=None) Plot the given Delaunay triangulation in 2-D
convex_hull_plot_2d(hull,ax=None) Plot the given convex hull diagram in 2-D
voronoi_plot_2d(vor,ax=None,**kw) Plot the given Voronoi diagram in 2-D
_held_figure(func, obj, ax=None, **kw)
_adjust_bounds(ax, points)
delaunay_plot_2d(tri, ax=None)

Plot the given Delaunay triangulation in 2-D

tri : scipy.spatial.Delaunay instance
Triangulation to plot
ax : matplotlib.axes.Axes instance, optional
Axes to plot on
fig : matplotlib.figure.Figure instance
Figure for the plot

Delaunay matplotlib.pyplot.triplot

Requires Matplotlib.

convex_hull_plot_2d(hull, ax=None)

Plot the given convex hull diagram in 2-D

hull : scipy.spatial.ConvexHull instance
Convex hull to plot
ax : matplotlib.axes.Axes instance, optional
Axes to plot on
fig : matplotlib.figure.Figure instance
Figure for the plot

ConvexHull

Requires Matplotlib.

voronoi_plot_2d(vor, ax=None, **kw)

Plot the given Voronoi diagram in 2-D

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
fig : matplotlib.figure.Figure instance
Figure for the plot

Voronoi

Requires Matplotlib.