Skip to content
Sign upLog in
← Back to Community

pyplot savefig not working

Profile icon
StefanoBanchier

I tried to use plyplot as described in the guide here: https://docs.repl.it/repls/python-plots

but it seems not working. Not even in the linked code:
https://repl.it/@timmy_i_chen/docs-matplotlib-example

Voters
Profile icon
StefanoBanchier
Comments
hotnewtop
Profile icon
TuffeMann

There is an issue with pyplot. I tried savefig, two pdf files generated from same .py. Showed first plot, stopped, but saved file, did not save or show second pdf. Seem the plt.show() command halts execution. Now, commenting out plt.show(), I managed to run full py script, saving each fig to pdf. So the issue is plt.show()

Profile icon
StefanoBanchier

Up?