如何在海洋catplot中为单个轴设置XTICKS

发布于 2025-01-26 00:00:17 字数 599 浏览 5 评论 0原文

我有以下代码,轴为行,但只有最后一个轴显示Xticks,而我想在每个轴上显示Xticks。 Please someone help me with this and also guide me how to individually control all the elements of axes.

g = sns.catplot(data = df_full[df_full['Team'].isin(Test_playing_list)], x = 'Match_Year',  #palette = sns.color_palette('Paired', 7),
                y = 'Win_percent',kind = "bar", height=3, aspect=3, linewidth = 2, row = 'Team', orient="v", facet_kws={'sharey':False, 'sharex':False})
plt.xticks(rotation = 90)


#plt.grid()
plt.show

enter image description here

I have below code with axes in rows but only the last axes shows the xticks while I want to show the xticks on on each Axes. Please someone help me with this and also guide me how to individually control all the elements of axes.

g = sns.catplot(data = df_full[df_full['Team'].isin(Test_playing_list)], x = 'Match_Year',  #palette = sns.color_palette('Paired', 7),
                y = 'Win_percent',kind = "bar", height=3, aspect=3, linewidth = 2, row = 'Team', orient="v", facet_kws={'sharey':False, 'sharex':False})
plt.xticks(rotation = 90)


#plt.grid()
plt.show

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文