# Examples from pyvista.DataSetAttributes.active_scalars
# ======================================================

# Associate point data to a simple cube mesh and show that the
# active scalars in the point array are the most recently added
# array.
import pyvista as pv
import numpy as np
mesh = pv.Cube()
mesh.point_data['data0'] = np.arange(mesh.n_points)
mesh.point_data.active_scalars

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

