DataSetMapper#
- class DataSetMapper(*args, **kwargs)[source]#
Wrap vtkDataSetMapper.
- Parameters:
- dataset
pyvista.DataSet,optional Dataset to assign to this mapper.
- theme
pyvista.plotting.themes.Theme,optional Plot-specific theme.
- dataset
Examples#
Download Python source code | Download Jupyter notebook
Create a mapper outside pyvista.Plotter and assign it to an
actor.
>>> import pyvista as pv
>>> mesh = pv.Cube()
>>> mapper = pv.DataSetMapper(dataset=mesh)
>>> actor = pv.Actor(mapper=mapper)
>>> actor.plot()
Used In#
Docstring Examples
Actor(1 use)Actor.mapper(1 use)Actor.plot(1 use)Follower(1 use)_BaseMapper.bounds(1 use)_BaseMapper.copy(1 use)
Inherited Attributes#
Return or set the array name or number and component to color by. |
|
Return the bounds of this mapper. |
|
Return the size of each axis of the object’s bounding box. |
|
Return the center of mapper. |
|
Colormap assigned to this mapper. |
|
Return or set the color mode. |
|
Return or set the dataset assigned to this mapper. |
|
Return or set the interpolation of scalars before mapping. |
|
Return or set the lookup table. |
|
Set or return the global flag to avoid z-buffer resolution. |
|
Return or set the scalar map mode. |
|
Return or set the scalar range. |
|
Return or set the scalar visibility. |
|
Return or set whether the mapper treats its input as static. |
Inherited Methods#
Convert the active scalars to RGBA. |
|
Detach the active scalars algorithm, if any. |
|
Create a copy of this mapper. |
|
Set the active scalars for this mapper without mutating its dataset. |
|
Set custom opacity. |
|
Set the scalars on this mapper. |
|
Update this mapper. |