-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Figure is unpicklable after savefig
#6870
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
savefig
savefig
I have tracked down the problem in the svg backend. |
The way we have solved this in other places in the codebase is to customize |
But then that warning from pytest will not be solved. |
I see not reason why renderer should have reference to the file object passed to |
Yes, you are correct, we should drop the reference to the file object in in the finalize step. |
UPDATED: I meant to post this comment on #6899 (which is related to this issue) |
Then you are commenting on a wrong issue. |
It's not allowed to be pickled on a Figure, so presumably it shouldn't be allowed on the Axes either. Fixes matplotlib#6870. Fixes matplotlib#6181. Fixes matplotlib#3899.
It's not allowed to be pickled on a Figure, so presumably it shouldn't be allowed on the Axes either. Fixes matplotlib#6870. Fixes matplotlib#6181. Fixes matplotlib#3899.
It's not allowed to be pickled on a Figure, so presumably it shouldn't be allowed on the Axes either. Fixes matplotlib#6870. Fixes matplotlib#6181. Fixes matplotlib#3899.
Uh oh!
There was an error while loading. Please reload this page.
I think those warnings from pytest are maybe related:
With a file name pickle fails in the pdf backend (and svg too):
The text was updated successfully, but these errors were encountered: