Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

save plot as pdf python

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

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

python save figure as pdf

import matplotlib.pyplot as plt

f = plt.figure()
plt.plot(range(10), range(10), "o")
plt.show()

f.savefig("foo.pdf", bbox_inches='tight')
Comment

PREVIOUS NEXT
Code Example
Python :: create folders in python 
Python :: python sort with comparator 
Python :: images subplot python 
Python :: find out current datetime in python 
Python :: python program to find n prime numbers 
Python :: get output of ps aux grep python 
Python :: python implode list 
Python :: stringf replcae in python 
Python :: python parser txt to excel 
Python :: pil to rgb 
Python :: seaborn plot dpi 
Python :: regex email python 
Python :: number of database queries django 
Python :: Make tkinter window look less blury 
Python :: equivalent of ament_index_python in noetic 
Python :: python Split a file path into root and extension 
Python :: plot_histogram qiskit pycharm 
Python :: arweave python 
Python :: pause program python 
Python :: Embed picture in email using smtplib 
Python :: SSL handshake failed: localhost:27017 
Python :: is there a replacement for ternary operator in python 
Python :: pandas et numeric columns 
Python :: generate 12 random numbers python 
Python :: pandas show column types 
Python :: train test split pandas 
Python :: pythons os module choose random file 
Python :: How do I start a DataFrame index from 1? 
Python :: group by count dataframe 
Python :: how to create virtual environment 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =