-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Alpha values of RGBA color tuples are ignored #1966
Comments
It is not a bug, in the sense that the behavior matches what is documented:
One might wish that RGBA input yields RGBA output, which might be reasonable. But there are many matplotlib functions where the alpha channel of the |
Thank you very much for your reply. I would still prefer to be able to set the alpha value myself. Otherwise, I wouldn't, for example, be able to create a scatterplot with varying degrees of transparency for different categories. Related to that, it would maybe be a good idea to change the following line of code: Line 937 in 88479dc
|
In matplotlib the |
Yes I misspoke; I meant there are seaborn functions that work that way. Part of the challenge is that some seaborn functions (e.g. So, it's tricky. |
I would also ask for the same functionality. I am facing this using |
Would also be useful for |
FWIW, I'd like this as well; my use case is for stripplot, where there are too many data points to effectively use swarmplot. Using stripplot with a low alpha allows a 'cloud' effect to give some idea of density to non-stats people for whom a violin plot would be too much. But, there is another category of points that are unusual and rare, so I want them to be opaque. Unfortunately, I discovered (after much frustration) that the alpha settings in the colors provided to the palette argument are ignored. Even documenting this behavior would be useful, as one would not keep experimenting, trying to figure out what they were doing wrong. |
I subscribe also to this feature request. It is something that is missing in the current seaborn package |
Thank you very much for providing this awesome library. Unfortunately, I found a bug concerning the handling of the transparency values in RGBA colour tuples. The alpha value is simply being ignored, as
print(sns.color_palette([(1,1,1,0)]))
only results in the following output:
[(1.0, 1.0, 1.0)]
The text was updated successfully, but these errors were encountered: