pyvista.Renderer.add_north_arrow_widget#
- Renderer.add_north_arrow_widget(
- interactive=None,
- color='#4169E1',
- opacity=1.0,
- line_width=2,
- edge_color=None,
- lighting=False,
- viewport=(0, 0, 0.1, 0.1),
Add a geographic north arrow to the scene.
Added in version 0.44.0.
- パラメータ:
- interactivebool,
optional オリエンテーション・ウィジェットがインタラクティブであるかどうかを制御します. デフォルトでは,
pyvista.global_theme.interactiveの値を使用します.- color
ColorLike,optional Color of the north arrow.
- opacity
float,optional Opacity of the north arrow.
- line_width
float,optional Width of the north edge arrow lines.
- edge_color
ColorLike,optional エッジの色.
- lightingbool,
optional Enable or disable lighting on north arrow.
- viewportsequence[
float], default: (0, 0, 0.1, 0.1) ウィジェットのビューポート
(xstart, ystart, xend, yend)です.
- interactivebool,
- 戻り値:
- vtkOrientationMarkerWidget
オリエンテーションマーカーウィジェット.
参考
add_axesAdd arrow-style axes as an orientation widget.
add_box_axesAdd an axes box as an orientation widget.
add_north_arrow_widgetAdd north arrow as an orientation widget.
- 軸オブジェクト
異なる軸のオブジェクトを示す例です。
例
Use an north arrow as the orientation widget.
>>> import pyvista as pv >>> from pyvista import examples >>> terrain = examples.download_st_helens().warp_by_scalar() >>> pl = pv.Plotter() >>> actor = pl.add_mesh(terrain) >>> widget = pl.add_north_arrow_widget() >>> pl.enable_terrain_style(mouse_wheel_zooms=True) >>> pl.show()