Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

plot to image 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 :: hand tracking module 
Python :: load all csv files in a folder python pandas 
Python :: kivy date widget 
Python :: import csv file in python 
Python :: save video cv2 
Python :: function to convert minutes to hours and minutes python 
Python :: server error 500 heroku django 
Python :: removing odd index character of a given string in python 
Python :: python divide one column by another 
Python :: variance calculation python manually 
Python :: Running setup.py bdist_wheel for opencv-python: still running... 
Python :: pandas series to list 
Python :: python env variable 
Python :: python expression factorisation 
Python :: check os python 
Python :: how to add column headers in pandas 
Python :: python json indented 
Python :: check version numpy 
Python :: pandas rename single column 
Python :: min max scaling pandas 
Python :: how to launch jupyter notebook from cmd 
Python :: Print a nested list line by line in python 
Python :: python conditional assignment 
Python :: filter function using lambda in python 
Python :: adaptive thresholding with opencv python 
Python :: goal parser 
Python :: train test validation sklearn 
Python :: python check if variables are the same 
Python :: How to log a python crash? 
Python :: get variance of list python 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =