pyvista.RectilinearGrid.x#
- property RectilinearGrid.x: ndarray[ソース]#
X方向に沿った座標を返すか設定します.
- 戻り値:
numpy.ndarray
X方向に沿った点の配列.
例
RectilinearGrid のx座標を返します.
>>> 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 array([-10., 0.])
RectilinearGrid のx座標を設定します.
>>> grid.x = [-10.0, 0.0, 10.0] >>> grid.x array([-10., 0., 10.])