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.
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?