Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python how to save a Seaborn plot into a file

# Basic syntax:
plt.savefig("output.png")

# Example usage:
plt.figure()
plt.plot(range(5))
plt.savefig("output.png", dpi=300)

# Note, savefig comes from matplotlib.pyplot and plt is an 
# 	abbreviation for this, e.g. import matplotlib.pyplot as plt
Comment

PREVIOUS NEXT
Code Example
Python :: pandas columns to int64 with nan 
Python :: python random number between 1 and 100 
Python :: pandas remove char from column 
Python :: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(ChromeDriverManager().install()) 
Python :: intall python3 in linux 
Python :: working directory python 
Python :: flask gmail config 
Python :: PackagesNotFoundError: The following packages are not available from current channels: - python==3.6 
Python :: check if a number is perfect cube in python 
Python :: change column order dataframe python 
Python :: choice random word in python from a text file 
Python :: hwo to separate datetime column into date and time pandas 
Python :: python cli parameter 
Python :: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. 
Python :: import csv file using pandas 
Python :: export pandas dataframe as excel 
Python :: display cv2 image in jupyter notebook 
Python :: python install command in linux 
Python :: how to send a message in a specific channel discord.py 
Python :: tkinter entry default value 
Python :: perfect number in python 
Python :: ticks font size matplotlib 
Python :: python delete all files in directory 
Python :: load images pygame 
Python :: pandas series remove punctuation 
Python :: return maximum of three values in python 
Python :: clear console python 
Python :: python print how long it takes to run 
Python :: cannot remove column in pandas 
Python :: pandas count specific value in column 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =