array_names

property RectilinearGrid.array_names: List[str]

Return a list of array names for the dataset.

This makes sure to put the active scalars’ name first in the list.

Examples

Return the array names for a mesh.

>>> import pyvista
>>> mesh = pyvista.Sphere()
>>> mesh.point_data['my_array'] = range(mesh.n_points)
>>> mesh.array_names
['my_array', 'Normals']