pyvista.plotting.mapper._BaseMapper.array_name#
- property _BaseMapper.array_name: str[source]#
Return or set the array name or number and component to color by.
Examples
Show the name of the active scalars in the mapper.
>>> import pyvista as pv >>> mesh = pv.Sphere() >>> mesh['my_scalars'] = mesh.points[:, 2] >>> pl = pv.Plotter() >>> actor = pl.add_mesh(mesh, scalars='my_scalars') >>> actor.mapper.array_name 'my_scalars' >>> pl.close()