问题描述
在 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' object has no attribute 'flatten'
for axis in g.flatten():
for tick in axis.get_yticklabels():
tick.set_visible(True)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)