Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed
Milestone
Description
Bug summary
See title
Code for reproduction
importmatplotlibasmplmpl.cm.register_cmap("test",mpl.colors.ListedColormap(["C0","C1"]))
Actual outcome
PendingDeprecationWarning: The register_cmap function will be deprecated in a future version.Use ``matplotlib.colormaps.register_cmap(name)`` instead.Expected outcome
I think there's two problems here:
- The function is called
matplotlib.colormaps.register - The signature for that function is
mpl.colormaps.register(cmap, *, name=None, force=False)
Additional information
No response
Operating system
No response
Matplotlib Version
3.6.0.rc1
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
No response
Metadata
Metadata
Assignees
Labels
No labels