"free_y" facet_wrap 相当于 seaborn,python

"free_y" facet_wrap equivalent in seaborn, python

我想制作一个图表,显示按推文中出现频率最高的词划分的情绪。
我需要的基本上等同于 R.

中的 scales='free_y'
sns.catplot(x="count", y="word", col="emotion",
            data=df, kind="bar",
            height=4, aspect=.7, col_wrap=4)

现在看起来像这样:

我有一个 y 轴并且列出了所有单词,无论分配的情绪如何,但我只想拥有与每个组相关的单词:


感谢您的帮助!

catplot 中的参数 sharexsharey 控制哪些轴将在绘图之间共享,默认情况下它们都设置为 True.