matplotlib 3.5.1

AttributesNotesParametersBackRef

Attributes

triangles : (ntri, 3) array of int

For each triangle, the indices of the three points that make up the triangle, ordered in an anticlockwise manner. If you want to take the mask into account, use get_masked_triangles instead.

mask : (ntri, 3) array of bool

Masked out triangles.

is_delaunay : bool

Whether the Triangulation is a calculated Delaunay triangulation (where triangles was not specified) or not.

Notes

For a Triangulation to be valid it must not have duplicate points, triangles formed from colinear points, or overlapping triangles.

Parameters

x, y : (npoints,) array-like

Coordinates of grid points.

triangles : (ntri, 3) array-like of int, optional

For each triangle, the indices of the three points that make up the triangle, ordered in an anticlockwise manner. If not specified, the Delaunay triangulation is calculated.

mask : (ntri,) array-like of bool, optional

Which triangles are masked out.

An unstructured triangular grid consisting of npoints points and ntri triangles. The triangles can either be specified by the user or automatically generated using a Delaunay triangulation.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.collections.TriMesh

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/tri/triangulation.py#4
type: <class 'type'>
Commit: