[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/stable/api/_as_gen/../toolkits/../_as_gen/matplotlib.pyplot.triplot.html [Back]  [Original]

matplotlib.pyplot.triplot — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

matplotlib.pyplot.triplot#

matplotlib.pyplot.triplot(*args, **kwargs)[source]#

Draw an unstructured triangular grid as lines and/or markers.

Call signatures:

triplot(triangulation, ...)
triplot(x, y, [triangles], *, [mask=mask], ...)

The triangular grid can be specified either by passing a Triangulation object as the first parameter, or by passing the points x, y and optionally the triangles and a mask. If neither of triangulation or triangles are given, the triangulation is calculated on the fly.

Parameters:
triangulationTriangulation

An already created triangular grid.

x, y, triangles, mask

Parameters defining the triangular grid. See Triangulation. This is mutually exclusive with specifying triangulation.

other_parameters

All other args and kwargs are forwarded to plot.

Returns:
linesLine2D

The drawn triangles edges.

markersLine2D

The drawn marker nodes.

Notes

Note

This is the pyplot wrapper for axes.Axes.triplot.

Examples using matplotlib.pyplot.triplot#

[]

Triplot Demo

Triplot Demo
[]

Tricontour Smooth Delaunay

Tricontour Smooth Delaunay
[]

Trigradient Demo

Trigradient Demo
[]

Triinterp Demo

Triinterp Demo

Web Proxy Viewer  |  New URL  |  Original Page