_ColorbarConfig.title_pad

Contents

_ColorbarConfig.title_pad#

property _ColorbarConfig.title_pad: float[source]#

Return or set the colorbar title padding.

The padding is the space between the title and the tick labels, as a multiple of the size the labels are drawn at, or of the size they ask for on a box that sizes the text itself. A title turned alongside the bar is padded off the bar by a multiple of its own size.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> pv.global_theme.colorbar_horizontal.title_pad = 0.8