pyvista.Plotter.theme#
- property Plotter.theme: Theme[ソース]#
このプロッタで使用するテーマを返すか設定します.
バージョン 0.47 で非推奨: Assigning the
themeattribute to a plotter object does not affect global appearance settings such asbackground, which are set at instantiation. To this respect, you need to set the theme such that:import pyvista as pv pl = pv.Plotter() pl.theme = theme # change above lines to pl = pv.Plotter(theme=theme)
However, actor appearance settings such as
edge_colorfor example are correctly taken into account.- 戻り値:
pyvista.Themeこのプロッターのテーマ.
例
プロッタにはダークテーマを使用します.
>>> import pyvista as pv >>> from pyvista import themes >>> pl = pv.Plotter() >>> pl.theme = themes.DarkTheme() >>> actor = pl.add_mesh(pv.Sphere()) >>> pl.show()