plopp.mesh3d#
- plopp.mesh3d(vertices, faces, vertexcolors=None, edgecolor=None, figsize=(600, 400), norm='linear', title=None, vmin=None, vmax=None, cmap='viridis', camera=None, **kwargs)[source]#
Create a 3D mesh plot.
Added in version 24.09.2.
- Parameters:
vertices (
Variable
|DataArray
|Dataset
|DataGroup
[Any
] |ndarray
|Node
) – The vertices of the mesh. Must be a variable of dtype vector3.faces (
Variable
|DataArray
|Dataset
|DataGroup
[Any
] |ndarray
|Node
) – The indices that construct the faces of the mesh.vertexcolors (
Union
[Variable
,DataArray
,Dataset
,DataGroup
[Any
],ndarray
,Node
,None
], default:None
) – The colors of the vertices of the mesh. IfNone
, the mesh will have a single solid color.edgecolor (
Optional
[str
], default:None
) – The color of the edges. If None, no edges are drawn.figsize (
tuple
[int
,int
], default:(600, 400)
) – The size of the figure.norm (
Literal
['linear'
,'log'
], default:'linear'
) – The normalization of the colormap.title (
Optional
[str
], default:None
) – The title of the figure.vmin (
Union
[Variable
,float
,None
], default:None
) – The minimum value of the colormap.vmax (
Union
[Variable
,float
,None
], default:None
) – The maximum value of the colormap.cmap (
str
, default:'viridis'
) – The colormap to use.camera (
Optional
[Camera
], default:None
) – The camera configuration.
- Return type:
FigureLike