ENH: Set the alpha value for plots in rcParams · Issue #5132 · matplotlib/matplotlib · GitHub
Skip to content

ENH: Set the alpha value for plots in rcParams #5132

Description

@Jul3k

Using Matplotlib i often find myself repeadily writing the following to change the alpha value of the plots:

plot(x,y1, alpha=.6)
plot(x,y2, alpha=.6)
plot(x,y3, alpha=.6)
...

I was hoping to find a matching value in the rcParameters to change to option globally like:

plt.rcParams['lines.alpha'] = 0.6

Could this be implemented so it can be set in a style sheet and the code stays short and readable?

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions