Theme.font

Contents

Theme.font#

property Theme.font: _Font[source]#

Return or set the default font size, family, and/or color.

Examples#

Download Python source code | Download Jupyter notebook

Set the default font family to 'arial'. Must be either 'arial', 'courier', or 'times'.

>>> import pyvista as pv
>>> pv.global_theme.font.family = 'arial'

Set the default font size to 20.

Set the default title size to 40.

Set the default label size to 10.

Set the default text color to ‘grey’.

String formatter used to format numerical data to ‘{:.6e}’.

>>> pv.global_theme.font.fmt = '{:.6e}'