Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

save plot as image python

from matplotlib import pyplot as plt
# As png
plt.savefig('Path/FigureName.png')

# As pdf
plt.savefig('Path/FigureName.pdf')
Comment

how to save matplotlib figure to png

In [5]: plt.savefig('books_read.png')
Comment

save plotly figure as png python

fig.write_image("images/fig1.png")
Comment

PREVIOUS NEXT
Code Example
Python :: run python file using python code 
Python :: barplot syntax in python 
Python :: python currency sign 
Python :: smtplib not sending email 
Python :: how to get synonyms of a word in python 
Python :: measure cell execution time in ipython notebook 
Python :: python 2d array to dataframe 
Python :: pandas reset index without adding column 
Python :: current date to epoch python 
Python :: turn off xticks matplotlib 
Python :: stock market api python 
Python :: how to know the version of python using cmd 
Python :: python fibonacci 
Python :: python random integer in range 
Python :: block window if another window is open tkinter 
Python :: string split in pandas 
Python :: malier module python 
Python :: normal distribution in python 
Python :: lag function in pandas 
Python :: make blinking text python1 
Python :: power level in google colab 
Python :: check if camera is being used python 
Python :: create a dataframe python 
Python :: flask validate method 
Python :: django logout user 
Python :: pickling and unpickling in python 
Python :: how to change font in tkinter 
Python :: remove first character from string python 
Python :: is everything in python an object 
Python :: plot sphere in matplotlib 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =