DataSet.array_names#
- property DataSet.array_names: list[str][source]#
Return a list of array names for the dataset.
This makes sure to put the active scalars’ name first in the list.
Examples#
Download Python source code | Download Jupyter notebook
Return the array names for a mesh.
>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh.point_data['my_array'] = range(mesh.n_points)
>>> mesh.array_names
['my_array', 'Normals']
Used In#
Docstring Examples
DataObjectFilters.cell_validator(1 use)DataSet.get_array(1 use)DataSet.get_array_association(1 use)
Gallery Examples