imod.visualize.read_imod_legend#

imod.visualize.read_imod_legend(path: str | Path) tuple[list[str], list[float], list[str]][source]#
Parameters:

path (str) – Path to iMOD .leg file.

Returns:

  • colors (List of hex colors of length N.)

  • levels (List of floats of length N-1. These are the boundaries between) – the legend colors/classes.

  • labels (List of strings of length N. These are the labels for the) – legend colors/classes.