Skip to content

Feature request: Named cyclers #10840

Closed as not planned
Closed as not planned
@timhoffm

Description

@timhoffm

Feature Request / Discussion

Summary

Like we have named colormaps, it would be useful to have named cyclers as well.

This would allow code like

grafik

or even by name:

grafik

Is it useful?

  • I think there's a need to efficiently switch cyclers depending on the plot.
  • Also, as part of this, we can provide a number of default cyclers.
  • Styles are already available, however I have the feeling that they are too broad as I often adapt just the colors and defining a new style for each color scheme seems a bit heavy-weight.
  • Apart from the places where a cycler is explicitly used, this could also be used for other methods with a colors argument, e.g. plt.pie(data, colors='desert').

What would be needed?

Similar to colormaps:

  • register_cycler()
  • get_cycler()
  • a number of default cyclers.
  • Maybe the upstream Cycler class should get a name property.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions