alexanderholt
10/10/2017 - 12:55 PM

Save plot from Python

Save a high res png

# Include this after you import matplotlib

import matplotlib.pyplot as plt
plt.rcParams['savefig.dpi'] = 500


.
.
.

plt.savefig('your_figure.png')
plt.show() # not necessary but has to go after the save