pyvista.Plotter.view_xy

pyvista.Plotter.view_xy#

Plotter.view_xy(negative=False, render=True, bounds=None) None[ソース]#

XY平面を表示します.

パラメータ:
negativebool, default: False

反対側から見た図.

renderbool, default: True

レンダーウィンドウが表示されている場合は,カメラ位置を設定した後にレンダーをトリガーします.

boundsiterable(int), optional

Automatically set up the camera based on a specified bounding box (x_min, x_max, y_min, y_max, z_min, z_max).

組み込みメッシュ例のXY平面を表示します.

>>> from pyvista import examples
>>> import pyvista as pv
>>> airplane = examples.load_airplane()
>>> pl = pv.Plotter()
>>> _ = pl.add_mesh(airplane)
>>> pl.view_xy()
>>> pl.show()
../../../_images/pyvista-Plotter-view_xy-1_00_00.png