📜  python如何在seaborn中设置轴范围 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:29.440000             🧑  作者: Mango

代码示例1
# 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)