matplotlib.axes.Axes.triplot#

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

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

调用签名:

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

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

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

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

x, y, 三角形, 掩码

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

其他参数

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

返回:
linesLine2D

绘制的三角形的边。

标记 : Line2DLine2D

绘制的标记节点。

使用 matplotlib.axes.Axes.triplot 的示例#

Tricontour 平滑 Delaunay

Tricontour Smooth Delaunay

Tricontour 平滑用户

Tricontour Smooth User

Trigradient 演示

Trigradient Demo

Triinterp 演示

Triinterp Demo

Triplot 演示

Triplot Demo

Trifinder 事件演示

Trifinder Event Demo

triplot(x, y)

triplot(x, y)