【发布时间】:2018-01-08 19:35:02
【问题描述】:
我正在尝试使用 plotnine ggplot 创建分组条形图。
如您所见,x 刻度线彼此太近,标签杂乱无章。如何增加这些刻度标签之间的距离?
ggplot(test, aes(x = 'genre_pairs', y = 'average_rating', fill = 'group'))
+geom_bar(stat = "identity", position = position_dodge())
+scale_x_discrete (expand = np.array([0.2,0]))
是我目前所拥有的
【问题讨论】:
标签: python ggplot2 bar-chart python-ggplot plotnine