# Call plt.show() after plt.savefig("filename.png") # (Because plt.show() clears the plot from memory)