Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save plot as image python matplotlib

import matplotlib.pyplot as plt
import numpy as np

x = np.arange(0, 10, 0.1)
y = np.sin(x)

plt.plot(x, y)
plt.savefig('saved_figure.png')
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #save #plot #image #python #matplotlib
ADD COMMENT
Topic
Name
1+2 =