Skip to content

Feature request: Named cyclers #10840

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy