hydromodpy.display.colormaps#

Colormap policy.

A short list of perceptually-broken colormaps is banned across the whole display corpus. get_cmap() is the single entry point - it rejects a banned name up-front so misuse fails loudly at figure construction time, not later in a CI pipeline. The check_no_banned_in_call helper is used by the unit-test that scans the figures directory for direct matplotlib calls.

Functions

check_no_banned_in_call(call_args)

Return the subset of call_args that are banned colormap names.

get_cmap([name, kind])

Return a matplotlib colormap.