Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

export image png python

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

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

PREVIOUS NEXT
Code Example
Python :: save plot as pdf python 
Python :: python os remove file 
Python :: python plot a dictionary 
Python :: set axis limits matplotlib 
Python :: distance between point python 
Python :: python read string between two substrings 
Python :: python clean recycle bin 
Python :: python resize image 
Python :: get list of unique values in pandas column 
Python :: split array into chunks python 
Python :: base64 encode python 
Python :: how to delete every row in excel using openpyxl 
Python :: animations text terminal python 
Python :: python how to generate random number in a range 
Python :: convert pandas series from str to int 
Python :: read google sheet from web to pandas python 
Python :: change column order dataframe python 
Python :: write string to file python 
Python :: what to do in python when you get pygame.Surface object is not callable 
Python :: python string argument without an encoding 
Python :: ls.ProgrammingError: permission denied for table django_migrations 
Python :: python datetime remove timezone 
Python :: python bytes to dict 
Python :: how ot split a string every fourth eter 
Python :: python get majority of list 
Python :: update tensorflow pip 
Python :: pygame draw line 
Python :: how to install pygame in python 3.8 
Python :: axis font size matplotlib 
Python :: python function to print random number 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =