mayavi是否可以单独指定每个点的大小和颜色?
那个API对我来说很麻烦.
points3d(x, y, z...)
points3d(x, y, z, s, ...)
points3d(x, y, z, f, ...)
x, y and z are numpy arrays, or lists, all of the same shape, giving the positions of the points.
If only 3 arrays x, y, z are given, all the points are drawn with the same size and color.
In addition, you can pass a fourth array s of the same shape as x, y, and z giving an associated scalar value for each …
Run Code Online (Sandbox Code Playgroud) 我有一个带有多个顶点的 mayavi 对象,我想直接为这些顶点设置 RGB 或 RGBA 值,而不是将自己限制为带有标量的单个颜色图。如何做到这一点?
是否可以使用mayavi绘制带有3个颜色通道的图像?根据mayavi的文档,mayavi.mlab.imshow
只能处理形状(nxm)的图像.