In a Seaborn FacetGrid, how can I get the y-axis tick labels to show up in all the subplots, regardless of whether or not sharey=True
?
tips = sns.load_dataset("tips")
g = sns.FacetGrid(tips, col="time", row="sex")
g.map(sns.scatterplot, "total_bill", "tip")
The following attempt returns the error AttributeError: 'FacetGrid' object has no attribute 'flatten'
for axis in g.flatten():
for tick in axis.get_yticklabels():
tick.set_visible(True)