Problems with saving figures #3013
Unanswered
AnshulyadavUnofficial
asked this question in
Q&A
Replies: 1 comment
-
Not really sure what's going on here. Would like register my opinion though that this is a symptom of #2474. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been trying to save the output of plotter.get_pourbaix_plot. Earlier I could simply putthe pyplot object in a PDFPages objects like below to save the figure. However, due to changes in pymatgen get_pourbaix_plot returns a pyplot, which in theory should be the same as matplotlib.pyplot. The code below tries to save the figure produced by the returned pyplot, however the pdf generated contains a blank image. I am able to save the image manually after it is displayed, however that is undesirable as we would be generating thousands of such images.
In order to use the above code entry the name of your directory where you want to save the figure.
![output](https://user-images.githubusercontent.com/71870780/127197771-5e9b67ec-7b82-4a4e-9f99-e039425a38d0.png)
This is the expected output.
This is the output of foo.pdf
foo.pdf
The output pf stability.pdf is empty.
Any suggestions would be much appreciated
Beta Was this translation helpful? Give feedback.
All reactions