DiagramPlot
DiagramPlot[{{x1,y1},{x2,y2},…}]
plots the Voronoi diagram of the points {{x1,y1},…}.
DiagramPlot[{{x1,y1},{x2,y2},…},{q1,q2,…},val]
plots the points {{x1,y1},…}, as well as the diagram described by the vertices q1,q2,… and the vertex adjacency list val.
Details and Options
- DiagramPlot functionality is now available in the built-in Wolfram Language function VoronoiMesh.
- To use DiagramPlot, you first need to load the Computational Geometry Package using Needs["ComputationalGeometry`"].
- DiagramPlot has the same options as Graphics, with the following additions:
-
LabelPoints True whether points are labeled TrimPoints 0 number of diagram vertices to trim - Valid settings for LabelPoints are True and False. With the setting LabelPoints->True, each point is labeled according to its position in the input list.
- Valid settings for TrimPoints are any non-negative integers. Regardless of the setting for TrimPoints, the PlotRange is always large enough to include all the points {x1,y1},{x2,y2},….
Text
Wolfram Research (2012), DiagramPlot, Wolfram Language function, https://reference.wolfram.com/language/ComputationalGeometry/ref/DiagramPlot.html.
CMS
Wolfram Language. 2012. "DiagramPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ComputationalGeometry/ref/DiagramPlot.html.
APA
Wolfram Language. (2012). DiagramPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ComputationalGeometry/ref/DiagramPlot.html