pyvista.RectilinearGrid.y#

property RectilinearGrid.y: ndarray[ソース]#

Y方向に沿った座標を返すか設定します.

戻り値:
numpy.ndarray

Y方向に沿った点の配列.

RectilinearGrid のy座標を返します.

>>> 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.y
array([-10.,   0.])

RectilinearGrid のy座標を設定します.

>>> grid.y = [-10.0, 0.0, 10.0]
>>> grid.y
array([-10.,   0.,  10.])