# scipy.spatial.delaunay_plot_2d

scipy.spatial.delaunay_plot_2d(tri, ax=None)

  Plot the given Delaunay triangulation in 2-D

  Parameters
    tri scipy.spatial.Delaunay instance

      Triangulation to plot

    ax matplotlib.axes.Axes instance, optional

      Axes to plot on

  Returns
    fig matplotlib.figure.Figure instance

      Figure for the plot

  See also

  `Delaunay`
  `matplotlib.pyplot.triplot`

  Notes

  Requires Matplotlib.

  Examples

      >>> import matplotlib.pyplot as plt
      >>> from scipy.spatial import Delaunay, delaunay_plot_2d

  The Delaunay triangulation of a set of random points:

      >>> rng = np.random.default_rng()
      >>> points = rng.random((30, 2))
      >>> tri = Delaunay(points)

  Plot it:

      >>> _ = delaunay_plot_2d(tri)
      >>> plt.show()

scipy.spatial.HalfspaceIntersection.close scipy.spatial.convex_hull_plot_2d