Skip to content
Advertisement

Tag: facet-grid

How to format the y- or x-axis labels in a seaborn FacetGrid

I want to format y-axis labels in a seaborn FacetGrid plot, with a number of decimals, and/or with some text added. Inspired from How to format seaborn/matplotlib axis tick labels from number to thousands or Millions? (125,436 to 125.4K) It results in the following error. AttributeError: ‘FacetGrid’ object has no attribute ‘xaxis’ Answer xaxis and yaxis are attributes of the

Prevent Sharing of Y Axes in a relplot

I’m having trouble getting seaborn’s relplot function to plot with different y axes on each row (while sharing x axes per column). I can see that both the FacetGrid and catplot methods in seaborn have a sharex/sharey keyword argument that would solve my problem, but I can’t find a similar one in relplot. Is there some way I can work

Advertisement