add_legend#

PrimePlotter.add_legend(entries, **kwargs)#

Add a legend to the scene.

Parameters:
  • entries (list) – Legend entries, each a [name, color] pair.

  • **kwargs (dict, default: None) – Keyword arguments passed to scene.add_legend().

Return type:

pyvista.Actor

Returns:

Actor holding the legend.

Examples using PrimePlotter.add_legend#

Using PyVista for Graphics in PyPrimeMesh

Using PyVista for Graphics in PyPrimeMesh