copy a color map object does not isolate changes to cm #8299
Labels
Difficulty: Medium
https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Milestone
If you do
cm2 = copy.copy(cm)
and the original color map has been used at least once, then the copy will share a reference toself._lut
(which is what is used to__call__
to map from values -> rgba). Any calls toset_over
,set_under
, orset_bad
will be shared by all copies (as they updateself._lut
in place).The text was updated successfully, but these errors were encountered: