reservoirflow.utils.pyvista.get_cbar_dict#

reservoirflow.utils.pyvista.get_cbar_dict(prop: str = 'pressures', n_colors: int = 10, fmt: str = '%.f') dict#

Get color bar dictionary for a pyvista plotter.

Parameters:
  • prop (str, optional) – name of the property as a string.

  • n_colors (int, optional) – number of colors of the color bar.

  • fmt (str, optional) – text format of the color bar.

Returns:

color bar configuration as a dictionary.

Return type:

dict