Skip to content

Commit 4b6c1b1

Browse files
tacaswelltimhoffm
andcommitted
DOC: clarify deprecation note
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent bc4b029 commit 4b6c1b1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/api/next_api_changes/deprecations/23668-TC.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ In Matplotlib 3.6 we have marked those top level functions as pending
1414
deprecation with the intention of deprecation in Matplotlib 3.7. The
1515
following functions have been marked for pending deprecation:
1616

17-
- `matplotlib.cm.get_cmap`
18-
- `matplotlib.cm.register_cmap`
19-
- `matplotlib.cm.unregister_cmap`
20-
- ``matplotlib.pyplot.register_cmap``
17+
- `matplotlib.cm.get_cmap` - use ``matplotlib.colormaps[name]`` instead
18+
- `matplotlib.cm.register_cmap` - use ``matplotlib.colormaps.register`` instead
19+
- `matplotlib.cm.unregister_cmap` - use ``matplotlib.colormaps.unregister`` instead
20+
- ``matplotlib.pyplot.register_cmap`` - use ``matplotlib.colormaps.register`` instead
2121

22-
The ``matplotlib.pyplot.get_cmap`` function is intentionally exempted from this
23-
deprecation process.
22+
The ``matplotlib.pyplot.get_cmap`` function will stay available for backward compatibility.

0 commit comments

Comments
 (0)