-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Hatching doesn't respect alpha #7992
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
It looks like this will be fixed by #7976, in the case where the |
Nice! Thanks for the quick update :) |
This is now fixed in master and 2.0.1 |
Is there no way to control the hatch transparency separately? |
At the lowest level it can be controlled, but currently there is no user interface to this in the classes we ship. If you need a different color hatch + edge, I suggest using two over-lapping artists. |
Is there any update about separate transparency control? If I use two artists to get desired effect, I have problem with legend. |
@usiu5555 See the last example of https://matplotlib.org/users/legend_guide.html#legend-handlers that section for how to handle merging multiple artists into a single legend entry. There has not bee any progress on threading the alpha control of the hatch through the Artist classes, would you be interested in looking into that @usiu5555 ? |
@tacaswell Thank you, that helped, and was much easier than I expected. Well, sounds like a challenge, but sadly, because of many reasons, I can't. |
Bug report
Bug summary
When plotting using a hatch, alpha is not applied to the hatching
Code for reproduction
Actual outcome

Hatching is black with no alpha
Expected outcome
Before matplotlib 2.0, the hatching was the color of the fill and alpha was respected
Matplotlib version
Windows 7
matplotlib 2.0.0
numpy 1.12.0
scipy 0.18.1
Installation through pip
The text was updated successfully, but these errors were encountered: