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

[MNT]: matplotlib.cycler and pyplot.cycler are different functions #26868

Open
Milestone
@timhoffm

Description

@timhoffm

Summary

  • pyplot.cycler is an (unused) import of the originalcycler.cycler() function. This was originally imported in0c1e609 to be used inside thexkcd() function. It's probably not meant to be public, but as a matter of fact is now (https://github.com/search?q=plt.cycler&type=code). - We even have used it in an example in 3.4.0 What's new.
  • matplotlib.cycler ismatplotlib.rcsetup.cycler() which is a wrapper aroundcycler.cycler() and additionally includes validation.

Proposed fix

Attention@ksunden:pyplot.cycler is not re-exported for typing, so we may see complaints about this in the near future.


Generally, we should not expose two different cycler functions within matplotlib. It's questionable enough (though one can argue for it) that we provide a replacement for the original cycler.

Likely, the reasonable way forward is to exposematplotlib.rcsetup.cycler() inpyplot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp