-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG: PDF export seems wrong with dash sequences that include a None offset #8405
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
What do you use for viewing pdfs? I got them same problem. However when the PDF is opened in chrome it showed up fine. Also for adobe reader 9 and edge it didn't even show the top two lines. Will go through this. |
I have the issue with Evince, MuPDF, xpdf and qpdfview. |
my guess is an overly agressive cut-out looking for None in the pdf backend. |
It seems to me that the linestyle documentation specifies "(offset, on-off-dash-seq)" and only explains what the on-off-dash-seq can be. It doesn't really say what the type of the offset should be, but I don't see how it could be anything but a number, so the bug is that this generates invalid PDF output instead of erroring out. |
Passing |
Bug summary
Custom dash sequences of the form (None, on_off_seq) seem to be rendered as solid lines in PDF exports.
Code for reproduction
Actual outcome

Please note that the picture above is a manual screenshot of the PDF produced with Matplotlib. For an unknown reason, GitHub does not allow me to upload the original PDF file…
Expected outcome

Something like the PNG export of the same plot:
Both PNG and PDF look fine when exported with Matplotlib 1.5.1 (from conda). PDF export seems to be “broken” in this case both with Matplotlib 2.0.0 (from conda) and and master (from GitHub).
OS: CentOS 7
Python: 2.7
The text was updated successfully, but these errors were encountered: