From the official maritime documentation , I found out that you can create a box as shown below:
import seaborn as sns sns.set_style("whitegrid") tips = sns.load_dataset("tips") ax = sns.boxplot(x="day", y="total_bill", data=tips)

My question is: how to limit the range of the y axis of this graph? For example, I want the y axis to be within [10, 40]. Is there an easy way to do this?
python matplotlib boxplot seaborn
Xin
source share