mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.18k stars 1.89k forks source link

Defining plot size in seaborn objects ? #3675

Closed mat-ej closed 2 months ago

mat-ej commented 2 months ago

Hi seaborn community

I could not find the setting of the size in seaborn objects API tutorials and documentation

I want to set plot size in a plot in a nice concise manner that works with seaborn objects:

Example:

lineplop.facet('shift', wrap = 3).share(x= True, y = False)

I can only do so as follows

lineplop.facet('shift', wrap = 3).share(x= True, y = False).on(mpl.Figure(figsize=(20, 10)))

Is this the way I am supposed to be setting size in e.g. facet grid plots that do have many subplots, which are by default tiny, or there is some proper solution using .scale ?

MaozGelbart commented 2 months ago

Hi @mat-ej , you probably want to use .layout when you want to change the default figure size.