So I have a matplotlib figure. Which is generated by this code
matplotlib.pyplot.subplots_adjust(left=0.05, bottom=0.1, right=0.95, top=0.94, wspace=0.2, hspace=0.2)
f.autofmt_xdate()
f.savefig('demo.png')
it looks like this: picture 1
When I use
plt.show()
and maximize the figure frame and then save it manually, it looks like this: picture 2
Now how do I save it like this with the code?