Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python how to set the axis ranges in seaborn

# Short answer:
# Seaborn uses matplotlib, so you can set the axes in the same way with
# plt.xlim(lower, upper) and plt.ylim(lower, upper)

# Example usage:
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_style("whitegrid")
tips = sns.load_dataset("tips")
sns.boxplot(x="day", y="total_bill", data=tips)
plt.ylim(5, 45)
Comment

PREVIOUS NEXT
Code Example
Python :: python count words in file 
Python :: string to datetime 
Python :: import sklearn linear regression 
Python :: check string similarity python 
Python :: pandas series remove punctuation 
Python :: rectangle in tkinter 
Python :: save machine learning model python 
Python :: pyspark distinct select 
Python :: python requirments.txt 
Python :: python add 1 to count 
Python :: clear console python 
Python :: How do I set Conda to activate the base environment by default? 
Python :: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123) 
Python :: python check if folder is empty 
Python :: how to install wxpython 
Python :: python print float in scientific notation 
Python :: how to save a dictionary to excel in python 
Python :: pytesseract tesseract is not installed 
Python :: save numpy array to csv 
Python :: read os.system output python 
Python :: get time taken to execute python script 
Python :: suffixes in pandas 
Python :: log base 2 python 
Python :: name unnamed column pandas 
Python :: matplotlib grid in background 
Python :: python deep copy of a dictionary 
Python :: python get copied text 
Python :: best games made in pygame 
Python :: Change the user agent selenium 
Python :: python convert file into list 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =