Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Seaborn FacetGrid different y-axis

I'm using sns.FacetGrid to plot 10 subplots. I'd like to flex the y-axis to be different for each subplot.

At the moment it automatically uses the same for all subplots. Would it be possible to customize it to make it more specific for each subplot?

like image 314
Dany Avatar asked Nov 15 '25 13:11

Dany


1 Answers

See the documentation for facet grid here

share{x,y}bool, ‘col’, or ‘row’ optional If True, the facets will share y axes across columns and/or x axes across rows.

Be advised that this also breaks alignment across columns and will most likely not produce the results you intended. One Y axis will be displayed, which will be only valid for the leftmost plot.

like image 114
Sebastian Wozny Avatar answered Nov 17 '25 08:11

Sebastian Wozny



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!