change savefig picture size code example Example: savefig resolution plt.savefig('filename.png', dpi=300)