Commit bb2de5e
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
396 | 403 | | |
397 | 404 | | |
398 | 405 | | |
| |||
1141 | 1148 | | |
1142 | 1149 | | |
1143 | 1150 | | |
1144 | | - | |
| 1151 | + | |
1145 | 1152 | | |
1146 | 1153 | | |
1147 | 1154 | | |
| |||
0 commit comments