Last answered:

13 Oct 2022

Posted on:

03 Nov 2021

8

plt.savefig() outputs blank image

Not a question, but two remarks:

  1. After plt.show() is called, a new figure is created. To deal with this, you can call plt.savefig("your_image.png") before you call plt.show()
  2. With an image of size (9, 6), the absissa legend is cut. An image of size (15, 10) fixes the problem.
2 answers ( 0 marked as helpful)
Instructor
Posted on:

10 Nov 2021

0

Hi cmarquay,
thanks for pointing this out and for being a part of the data viz course!

Best
365 Eli

Posted on:

13 Oct 2022

0

Hey Christian

Thanks a lot for this observation!

Submit an answer