I just can't figure out how to change the xlabels in a Seaborn Facetgrid. It offers a method for changing the x labels with set_xlabels() but unfortunately not individually for each subplot.
I have two subplots which share the y-axis but have a different x-axes and i want to label them with different texts.
Can anybody give me a hint. Thank you in advance.
You can access the individual axes of the
FacetGrid
using theaxes
property, and then useset_xlabel()
on each of them. For example:Note in this example,
g.axes
has a shape of(1,2)
(one row, two columns).