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