specifying and saving a figure with exact size in pixels,"plt.savefig('myfig.png', dpi=1000)"