FacetGrid axes sharing x axis across rows / y-axis across columns

Viewed 12096

FacetGrid from seaborn creates a grid of subpots allowing you to explore conditional relationships in your dataset.

Two of the keyword arguments the function accepts are sharex and sharey, which according to the docs:

share{x,y} : bool, optional

If true, the facets will share y axes across columns and/or x axes across rows.

But I don't see any other way to control the way facets/subplots share axes. And so here comes the...

Question:

Is there any way to share the x axis across columns and/or the y axes across rows?

I'm trying to obtain density plots of different quantities (in rows) for different conditions (in columns and hue). Thus, I would my subplots to share both the x and y axis across rows, but no linkage across columns.

2 Answers
Related