Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]: register_cmap deprecation message seems wrong #23719

Closed
Milestone
@mwaskom

Description

@mwaskom

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 calledmatplotlib.colormaps.register
  • The signature for that function ismpl.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

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp