First time here? Check out the FAQ!
answered 8 years ago
Try
plt.savefig('mychart.png')
instead of
plt.show()