Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plt.savefig without showing

import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

plt.plot([1,2,3])
plt.savefig('/tmp/test.png')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #showing
ADD COMMENT
Topic
Name
2+5 =