Answers for "Seaborn axis range"

1

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)
Posted by: Guest on October-04-2020
0

seaborn documentation x axis range

>>> set_style("ticks", {"xtick.major.size": 8, "ytick.major.size": 8})
Posted by: Guest on April-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language