-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Rasterizing patch changes filling of hatches in pdf backend #6228
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
This may be addressed by #6198 |
No, not fixed. In pdf when an artist is rasterized that just means that artist is rendered via the Agg backend (the same as png) and then that is inserted into the pdf (hence why they match). We probably should propagate the rasterized flag to the legend. That isn't fool-proof as the artists maybe rasterized based on zorder as well, but better than nothing. |
Of course doing that exposes #6227 ;) |
So the legend is kind of unrelated here; it's that Agg renders with a filled hatch pattern when |
I would go with the Agg behavior as 'correct'. |
Well that's good, because PDF's the easier one to fix. |
This matches behaviour with the Agg backend. Fixes matplotlib#3023. Fixes matplotlib#6228.
Closed in #7421 |
I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using
the agg backend but in the pdf backend only when it is rasterized.
As the legend artists do not use the rasterized prop (correct?), it is inconsistent.
mpl: 1.5.1, python 3.5.1, arch linux
Code to reproduce:
PNG output:
PDF output:
The text was updated successfully, but these errors were encountered: