【发布时间】:2021-02-07 04:23:13
【问题描述】:
我正在使用 Matplotlib 并且必须绘制一个三角形网格,其中的点在顶点处具有相关的颜色。网格必须是二维的,不是三维的,这是我见过的所有 trisurf 示例的规则。
x - x coordiantes of my points
y - y coordiantes of my points
s - values associated with my points (should be colors)
triangles - a list of indices [i,j,k] that indicates the triangles.
您能否提供一个示例,假设给定上述数据,生成三角形的二维网格(显示或不显示坐标轴)并根据顶点对三角形进行着色?如果线框仍然可见,那就太好了。
【问题讨论】:
标签: matplotlib