matplotlib.pyplot.triplot#

matplotlib.pyplot.triplot(*args, **kwargs)[源代码][源代码]#

绘制一个非结构化的三角形网格作为线条和/或标记。

调用签名:

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

三角网格可以通过传递一个 Triangulation 对象作为第一个参数来指定,或者通过传递点 xy 以及可选的 trianglesmask。如果 triangulationtriangles 都没有给出,则三角剖分会在运行时计算。

参数:
三角剖分 : Triangulation三角测量

一个已经创建的三角形网格。

x, y, 三角形, 掩码

定义三角网格的参数。参见 Triangulation。这与指定 triangulation 是互斥的。

其他参数

所有其他参数和关键字参数都会传递给 plot

返回:
线条 : Line2DLine2D

绘制的三角形的边。

标记 : Line2DLine2D

绘制的标记节点。

注释

备注

这是 axes.Axes.triplotpyplot 包装器

使用 matplotlib.pyplot.triplot 的示例#

Tricontour 平滑 Delaunay

Tricontour Smooth Delaunay

Trigradient 演示

Trigradient Demo

Triinterp 演示

Triinterp Demo

Triplot 演示

Triplot Demo