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