File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
doc/api/next_api_changes/removals Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11``matplotlib.cm.get_cmap ``
22~~~~~~~~~~~~~~~~~~~~~~~~~~
33
4- If you have the name of a colormap as a `str `, use ``matplotlib.colormaps[name] `` instead.
4+ Colormaps are now available through the `.Coloarmap.Registry ` accessible via
5+ ``matplotlib.colormaps `` or ``plt.colormaps ``.
56
6- Otherwise `matplotlib.cm.ColormapRegistry.get_cmap ` if you have a `str `, `None ` or a
7- `matplotlib.colors.Colormap ` object that you want to convert to a `.Colormap ` object.
7+ If you have the name of a colormap as a sting, you can use direct lookup
8+ ``matplotlib.colormaps[name] ``. Alternatively, `matplotlib.colormaps.get_cmap ` will
9+ maintain the existing behavior of additionally passing through `.Colormap ` instances
10+ and converting ``None `` to the default colormap. `plt.get_cmap ` will stay as a
11+ shortcut to `matplotlib.colormaps.get_cmap `.
You can’t perform that action at this time.
0 commit comments