Skip to content

Commit 07d80fd

Browse files
tacaswellgreglucas
andauthored
DOC: fix errors in doc/deprecation text
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
1 parent 90dba9f commit 07d80fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Deprecated top-level cmap registration and access functions in ``mpl.cm``
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33

4-
As part of `multi-step process
4+
As part of a `multi-step process
55
<https://github.com/matplotlib/matplotlib/issues/20853>`_ we are refactoring
6-
global state for managing the registered colormap.
6+
the global state for managing the registered colormaps.
77

88
In Matplotlib 3.5 we added a `.ColormapRegistry` class and exposed an
99
instance at the top level as ``matplotlib.colormaps``. The existing

lib/matplotlib/cm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def unregister(self, name):
204204
@_api.deprecated(
205205
'3.6',
206206
pending=True,
207-
alternative="``matplotilb.colormaps.unregister_cmap(name)``"
207+
alternative="``matplotilb.colormaps.register_cmap(name)``"
208208
)
209209
def register_cmap(name=None, cmap=None, *, override_builtin=False):
210210
"""

0 commit comments

Comments
 (0)