plt.savefig

plt.savefig('X:/' + newName + '.png', bbox_inches='tight')
CodeHunter