show_scalar_bar#

property MapdlTheme.show_scalar_bar: bool#

Return or set the default color bar visibility.

Examples

Show the scalar bar by default when scalars are available.

>>> import pyvista as pv
>>> pv.global_theme.show_scalar_bar = True