Plotnine,改变 x 轴上月份的顺序,目前按字母顺序排列
使用 Plotnine 绘制每月的值。 目前,月份在 x 轴上按字母顺序排序。 如何改变这一点?
这是代码:
(ggplot(df, aes(x = 'Month', y='Rented Bike Count')) +
stat_summary(fun_data = 'mean_sdl', geom = 'bar') +
theme(axis_text_x = element_text(angle=90)))
Using Plotnine to plot values per month.
Currently, the Months are ordered alphabetically on x axis.
How to change this?
here is the code:
(ggplot(df, aes(x = 'Month', y='Rented Bike Count')) +
stat_summary(fun_data = 'mean_sdl', geom = 'bar') +
theme(axis_text_x = element_text(angle=90)))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚找到解决方案:
just found out the solution: