-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Hatching is rendered differently by agg, pdf and svg backends. #10034
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
I thought this was something we fixed in 2.0 |
The difference in colour is the same as #10035, as all the artists have alpha. |
It's strange that there's a difference, as PDF uses a BTW, does this come out correctly in mplcairo? |
mplcairo does correctly fill the stars in pdf output, and from a quick look (I haven't actually checked the value, just a visual check) gets an alpha closer to the right value in svg. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
Bug report
Bug summary
The baseline images for the test_clipping test (clip_path_clipping.{png,pdf,svg}) clearly show differences in rendering between agg, pdf and svg:

top left is the svg baseline rendered by inkview (inkscape) 0.92.2, top right is the png baseline, bottom left is the pdf baseline rendered by okular 17.08.3, bottom right is the pdf baseline rendered by gs 9.22 (gs is used by the testing framework to rasterize the pdf for image comparisons).
Code for reproduction
N/A
Actual outcome
Expected outcome
All three backends should render hatching in a similar manner.
(As a side note, mplcairo generates pdf and svg that render like the png.)
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: