Support setting rcParams["image.cmap"] to Colormap instances. · matplotlib/matplotlib@bb2de5e · GitHub
Skip to content

Commit bb2de5e

Browse files
committed
Support setting rcParams["image.cmap"] to Colormap instances.
This makes it possible to set the rcParam to a non-registered colormap (which cannot be referred to by name). A use-case is to set it to e.g. `viridis.with_extremes(bad="k")`.
1 parent 7a5458b commit bb2de5e

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

doc/users/next_whats_new/2019-06-28-AL.rst

Lines changed: 4 additions & 0 deletions

lib/matplotlib/rcsetup.py

Lines changed: 9 additions & 2 deletions

0 commit comments

Comments
 (0)