Matplotlib: Save plot to file
It’s very straightforward to save a matplotlib
figure to disk:
import matplotlib.pyplot as plt
# ...
# matplotlib code here.
# ...
plt.savefig('path/to/figure.ext')
Via SO.
It’s very straightforward to save a matplotlib
figure to disk:
import matplotlib.pyplot as plt
# ...
# matplotlib code here.
# ...
plt.savefig('path/to/figure.ext')
Via SO.
Leave a comment