x

property StructuredGrid.x

Return the X coordinates of all points.

Returns
numpy.ndarray

Numpy array of all X coordinates.

Examples

>>> import pyvista
>>> import numpy as np
>>> xrng = np.arange(-10, 10, 1)
>>> yrng = np.arange(-10, 10, 2)
>>> zrng = np.arange(-10, 10, 5)
>>> x, y, z = np.meshgrid(xrng, yrng, zrng)
>>> grid = pyvista.StructuredGrid(x, y, z)
>>> grid.x.shape
(10, 20, 4)