You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting rotation of tick labels on a grid coming from an sns.catplot makes them disappear. Must be a combination of factors. Reproducible example below.
Reproducible Example:
importseabornassnsdf=sns.load_dataset("penguins")
grid=sns.catplot(
data=df,
x='species',
y='body_mass_g',
row='island',
hue='species',
capsize=0.2,
kind='bar',
errorbar='pi',
dodge=False,
sharey=True,
sharex=True,
)
# grid.figure.tight_layout() # does not helpgrid.set_xticklabels(rotation=70) # turn off to see labels appear again# grid.figure.tight_layout() # does not helpgrid.add_legend(title='species')
grid.figure.show()