Special color names to pull colors from the currently active color cycle · Issue #5489 · matplotlib/matplotlib · GitHub
Skip to content

Special color names to pull colors from the currently active color cycle #5489

Description

@mdboom

It would be extremely convenient to be able to choose colors from the current color cycle in the special syntax we support as a third argument to plt.plot. We proposed using [n] for this, where n is the index into the current color cycle. Eg.:

plt.plot(x, y, `[1]o-`)

Activity

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