3

I am plotting a graph in matplotlib and when I save it, the image size is about 100MB because I am using axs.fill_between() which fills almost 1/3 of the image. I have tried reducing the dpi as follows but it did not change the image size.enter image description here

plt.savefig('plot.pdf', dpi=50)

Any idea how to overcome this problem and reduce and the image size to the point of few MBs?

Sara Krauss
  • 388
  • 3
  • 17

0 Answers0