Answers for "how to save plot as image in python"

5

save matplotlib figure

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

save plot in python

plt.savefig('books_read.png')
Posted by: Guest on April-28-2020
0

how to write a script to display an image in python

>>> from PIL import Image                                                                                
>>> img = Image.open('test.png')
>>> img.show()
Posted by: Guest on January-12-2020
1

write in all corners of plot in python

from pylab import figure, text, scatter, show

text(0.1, 0.9,'matplotlib',
     horizontalalignment='center',
     verticalalignment='center',
     transform = ax.transAxes)
Posted by: Guest on May-07-2020

Code answers related to "how to save plot as image in python"

Python Answers by Framework

Browse Popular Code Answers by Language