Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed
Milestone
Description
Summary
In v3.4.0rc1, calls to a colormap'sset_bad,set_under, andset_over functions now trigger a deprecation warning saying that modifying a registered color map will soon be disallowed. This seems overly protective. If users have called any of these routines, then they are presumably doing so intentionally, probably after reading the documentation. This seems like the kind of routine customization that any user might expect to perform without going through the hoop of copying a color map every time.
Proposed fix
Remove the calls to_warn_if_global_cmap_modified(self) in theColormap.set_bad,set_under, andset_over functions incolor.py and change future plans to disallow such calls.