在 Seaborn FacetGrid 中,我如何使所有子图的 y 轴刻度标签显示出来,而不管是否设置了
sharey=True
?tips = sns.load_dataset("tips")
g = sns.FacetGrid(tips, col="time", row="sex")
g.map(sns.scatterplot, "total_bill", "tip")
以下尝试返回错误:AttributeError: 'FacetGrid'对象没有属性'flatten'
for axis in g.flatten():
for tick in axis.get_yticklabels():
tick.set_visible(True)