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 aTriangulationobject as the first parameter, or by passing the pointsx,y andoptionally thetriangles and amask. If neither oftriangulation ortriangles 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. SeeTriangulation.This is mutually exclusive with specifyingtriangulation.

other_parameters

All other args and kwargs are forwarded toplot.

Returns:
linesLine2D

The drawn triangles edges.

markersLine2D

The drawn marker nodes.

Notes

Examples usingmatplotlib.pyplot.triplot#

Tricontour Smooth Delaunay

Tricontour Smooth Delaunay

Trigradient Demo

Trigradient Demo

Triinterp Demo

Triinterp Demo

Triplot Demo

Triplot Demo