pyvista.themes._ColorbarConfig

class _ColorbarConfig

PyVista colorbar configuration.

Examples

Set the colorbar width.

>>> import pyvista
>>> pyvista.global_theme.colorbar_horizontal.width = 0.2

Methods

_ColorbarConfig.from_dict(dict_)

Create from a dictionary.

_ColorbarConfig.to_dict()

Return theme config parameters as a dictionary.

Attributes

_ColorbarConfig.height

Return or set colorbar height.

_ColorbarConfig.position_x

Return or set colorbar x position.

_ColorbarConfig.position_y

Return or set colorbar y position.

_ColorbarConfig.width

Return or set colorbar width.