[python] Matplotlib - How to plot a high resolution graph?

use plt.figure(dpi=1200) before all your plt.plot... and at the end use plt.savefig(... see: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.figure and http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.savefig