pyvista.DataSetMapper#
- class DataSetMapper(*args, **kwargs)[source]#
Wrap _vtk.vtkDataSetMapper.
- Parameters:
- dataset
pyvista.DataSet
,optional
Dataset to assign to this mapper.
- theme
pyvista.plotting.themes.Theme
,optional
Plot-specific theme.
- dataset
Examples
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()
Methods
Attributes
Return or set the array name or number and component to color by.
Return the bounds of this 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.