FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: register_cmap deprecation message seems wrong · Issue #23719 · matplotlib/matplotlib · GitHub

Repository navigation

[Bug]: register_cmap deprecation message seems wrong #23719

Closed

Description

Bug summary

See title

Code for reproduction

import matplotlib as mpl
mpl.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

Activity

  1. tacaswell commented on Aug 23, 2022

    Member

    This is already fixed in #23710

  2. added this to the v3.6.0 milestone on Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL