Skip to content

Commit f2663ed

Browse files
committed
Fix get_cmap name in deprecation message
1 parent 5773bf9 commit f2663ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/cm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ def _get_cmap(name=None, lut=None):
280280
# do it in two steps like this so we can have an un-deprecated version in
281281
# pyplot.
282282
get_cmap = _api.deprecated(
283-
'3.6', pending=True, alternative="``matplotlib.colormaps[name]``"
283+
'3.6',
284+
name='get_cmap', pending=True, alternative="``matplotlib.colormaps[name]``"
284285
)(_get_cmap)
285286

286287

0 commit comments

Comments
 (0)