# Examples from pyvista.RectilinearGrid.x
# =======================================

# Return the x coordinates of a RectilinearGrid.
import numpy as np
import pyvista as pv
xrng = np.arange(-10, 10, 10, dtype=float)
yrng = np.arange(-10, 10, 10, dtype=float)
zrng = np.arange(-10, 10, 10, dtype=float)
grid = pv.RectilinearGrid(xrng, yrng, zrng)
grid.x

# Set the x coordinates of a RectilinearGrid.
grid.x = [-10.0, 0.0, 10.0]
grid.x

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

