-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
contourf hatching and saving to pdf #3023
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
Just to add a bit more info: this mostly seems to be a problem when plotting with There are then some pdf viewer-dependent issues: there is reasonable hatching when viewed in Evince, but the transparency is not shown in Chrome, and no hatches are shown in Adobe Reader. |
I think @pelson introduced contourf hatching - do you have any ideas? |
Not immediately no. The contour hatching is just making use of the existing patch hatching functionality, so I'm guessing the same problem exists for PDF with that too. I seem to remember that there is a difference in behaviour when plotting hatches to Agg vs the PDF backend in that the hatch colours are defined by the colors keyword argument in one but not the other, and as a result they are not being drawn in the PDF backend. This could potentially be solved by having a 2-phase draw stage which draws the patches, and then draws the hatches independently, and ideally where the color and linewidth of the hatch could be controlled as well. This would definately take some development effort to achieve, but I think it would be well worthwhile... |
I think this is the same issue: PDF viewed in chrome also isn't showing the correct hatching with |
This seems to be better, but still wrong on v2.0.0b1 http://matplotlib.org/2.0.0b1/mpl_examples/pylab_examples/contourf_hatching_01.pdf http://matplotlib.org/2.0.0b1/examples/pylab_examples/contourf_hatching.html attn @jkseppan |
Am I missing something, or is hatching working just fine in those examples? |
This matches behaviour with the Agg backend. Fixes matplotlib#3023. Fixes matplotlib#6228.
Closed in #7421 |
contourf
hatches do not appear when saving to pdf. This is apparent in thecontourf_hatching.py
example, here:http://matplotlib.org/mpl_examples/pylab_examples/contourf_hatching_01.pdf
I think something similar was mentioned in #891 and #29, but I'm not sure it was resolved.
The text was updated successfully, but these errors were encountered: