-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Save to .pdf doesn't work in 2.1.0 #9390
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 tested with and the above code generates a pdf without problem and as expected. |
Almost certain it's a Py3 thing only. |
@narimiran Can you use I am very confused why our CI did not catch this, we save pdf on both travis and appveyor. |
Appveyor does not test svg and pdf currently (no builds with TEST_ALL=yes) |
This is probably better fixed in how we handle the file names in this section rather than patching up the subprocess call.
|
I just tried to reproduce this on my Linux machine (@anntzer: it is also Python 3) and I couldn't. I'll be back on my Windows machine on Monday, before that I can't give you more insightful answer, sorry. |
@tacaswell I started by trying that (and in fact PEP383 suggests that the "correct" way to store filenames is indeed str, not bytes) but a lot of things in dviread currently assume bytes so it turns out that change is a bit complicated... |
Fixed in #9292? |
@tacaswell do you want to restore svg/pdf testing on windows? I have a patch ready that switches ghostscript to single process similarly to #8248 did for inkscape, so that may help quite a bit with the speed. |
@anntzer Yes, lets see how much of a time hit that is. |
Closed by #9292 |
Bug report
Bug summary
fig.savefig(filename.pdf)
doesn't work like in the previous versionsCode for reproduction
Actual outcome
Expected outcome
Saving a figure as a .pdf file.
This has worked in 2.0.2 and all the previous versions.
Matplotlib version
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inlineThe text was updated successfully, but these errors were encountered: