我想做一个情节,显示情感分裂最常见的词在推特。
我所需要的基本上相当于R中的尺度=‘free_y’。
sns.catplot(x="count", y="word", col="emotion",
data=df, kind="bar",
height=4, aspect=.7, col_wrap=4)现在看起来是这样的:

我有一个y轴,列出了所有单词,而不管所分配的情感如何,但我只想拥有与每一组相关的单词:

谢谢你的帮忙!
发布于 2021-06-30 13:06:47
sharex和sharey在catplot控件中的参数将在地块之间共享,默认情况下,它们都设置为True。
https://stackoverflow.com/questions/68193629
复制相似问题