download output of jupyter notebook as image code example
Example 1: save image from jupyter notebook
plt.savefig('output.png', dpi=300, bbox_inches='tight')
Example 2: save image from jupyter notebook
fig.tight_layout()
plt.savefig('output.png', dpi=300)