Theme.logo_file#
- property Theme.logo_file: str | None[source]#
Return or set the logo file.
Note
pyvista.Plotter.add_logo_widget()will default to PyVista’s logo if this is unset.
Examples#
Download Python source code | Download Jupyter notebook
Set the logo file to a custom logo.
>>> import pyvista as pv
>>> from pyvista import examples
>>> logo_file = examples.download_file('vtk.png')
>>> pv.global_theme.logo_file = logo_file
Now the logo will be used by default for pyvista.Plotter.add_logo_widget().
>>> pl = pv.Plotter()
>>> _ = pl.add_logo_widget()
>>> _ = pl.add_mesh(pv.Sphere(), show_edges=True)
>>> pl.show()