You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate the APIs for mapping [0, 1] -> color (currently __call__(float)) from lut-element access (currently __call__(int)), because cmap(1) and cmap(1.0) giving different results is surprising [MNT]: Colormaps odd behavior (1 != 1.0) #28198 Suggestion: Replace BoundaryNorm[ENH]: BoundaryNorm should not need to know colormap length #21911 (comment), which will remove the need for indexing through __call__. Maybe create another way to index into a colormap's lut, in case some users need that functionality.
Decide whether we can better handle lookup tables resolution for LinearSegmentedColormap
and possibly deprecated rcParams['image.lut'] - globally tuning that parameter seems unreasonable
and error-prone
Summary
This is a collection of topics on colormaps to improve the API and also to eventually make colormaps immutable.
Tasks
ListedColormap(..., N=...)It's beyond the scope of
ListedColormapto post-process the given list of colors.PR: Deprecate ListedColormap(..., N=...) parameter #29135
ListedColormapto a sequence, i.e. no single colors [MNT]: ListedColormap inconsistencies #28763 (comment)PR: Implicitly via Deprecate ListedColormap(..., N=...) parameter #29135, because a single color has only worked when also passing
N.ListedColormap.monochromeattribute [MNT]: ListedColormap inconsistencies #28763PR: Make ListedColormap.monochrome a property #29125
over,under,badkwargs to constructor, so that one doesn't have to writeListedColormap(...).with_extremes(...)PR: ENH: Add bad, under, over kwargs to Colormap #29460
set_over(),set_under(),set_bad()PR: MNT: Pending-deprecate setting colormap extremes in-place #30531
ListedColormap"from_list" to ""PR: MNT: Change default name of ListedColormaps #30532
__call__(float)) from lut-element access (currently__call__(int)), becausecmap(1)andcmap(1.0)giving different results is surprising [MNT]: Colormaps odd behavior (1 != 1.0) #28198Suggestion: Replace
BoundaryNorm[ENH]: BoundaryNorm should not need to know colormap length #21911 (comment), which will remove the need for indexing through__call__. Maybe create another way to index into a colormap's lut, in case some users need that functionality.LinearSegmentedColormapand possibly deprecated
rcParams['image.lut']- globally tuning that parameter seems unreasonableand error-prone