pyvista.Renderer.add_axes_at_origin#
- Renderer.add_axes_at_origin(
- x_color=None,
- y_color=None,
- z_color=None,
- xlabel='X',
- ylabel='Y',
- zlabel='Z',
- line_width=2,
- labels_off=False,
原点に軸アクターを追加します.
- パラメータ:
- 戻り値:
vtk.vtkAxesActor
軸のアクター.
例
>>> import pyvista as pv >>> pl = pv.Plotter() >>> _ = pl.add_mesh(pv.Sphere(center=(2, 0, 0)), color='r') >>> _ = pl.add_mesh(pv.Sphere(center=(0, 2, 0)), color='g') >>> _ = pl.add_mesh(pv.Sphere(center=(0, 0, 2)), color='b') >>> _ = pl.add_axes_at_origin() >>> pl.show()