-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Feature request: allow a default line alpha to be set in mpl.rcParams #5461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can choose a color that includes alpha, i.e. #ffffff88. |
Thanks, I also see this is a duplicate of issue #5132. |
@mdboom, the hex colorspec does not support the optional alpha channel. It On Wed, Nov 11, 2015 at 8:57 AM, evandhall notifications@github.com wrote:
|
Ok -- sorry for creating confusion. If it isn't supported, I think it should be. I think separating color from alpha has been a long term mistake. To the extent that we're cleaning up color usage and specification, I think we should encourage more use of RGBA. |
This issue also makes #6196 (Qt editor drops alpha) difficult to solve. I am willing to tackle this but would also like to take advantage of this to deprecate some old stuff (because there's going to be some API breakage anyways). I think the public color conversion API should be something like:
and drop out |
It is not obvious to me that this requires breaking any API or removing any functionality. We need to keep the rgb only version around because some backends (ps) do not support alpha. |
closed via #6382 |
Currently, one can set default line properties like color, marker style, line width, etc. with
mpl.rcParams
. However, the ability to set a default line alpha seems to be missing. It would be great to have'lines.alpha'
as a key in thercParams
dict, similar to'lines.color'
,'lines.marker'
, etc.The text was updated successfully, but these errors were encountered: