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).
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.
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.
Activity
kahnchana commented on Apr 1, 2017
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.
afvincent commented on Apr 1, 2017
I have the issue with Evince, MuPDF, xpdf and qpdfview.
tacaswell commented on Apr 2, 2017
my guess is an overly agressive cut-out looking for None in the pdf backend.
jkseppan commented on May 20, 2017
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.
QuLogic commented on Mar 11, 2020
Passing None is deprecated as of #15828, so I don't think we have any plans to fix this.