Answers for "pyplot export image"

5

save matplotlib figure

plt.savefig('image.png')
Posted by: Guest on July-22-2020
0

matplotlib export image

from matplotlib import pyplot as plt

plt.savefig('foo.png')
plt.savefig('foo.pdf')
Posted by: Guest on April-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language