_ColorbarConfig#

class _ColorbarConfig[source]#

PyVista colorbar configuration.

Examples#

Download Python source code | Download Jupyter notebook

Set the colorbar width.

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

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.

Inherited Methods#

_ConfigBase.from_dict

Create an instance from a dictionary of attribute values.

_ConfigBase.to_dict

Return config parameters as a dictionary.