我正在尝试使用 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]))
是我到目前为止所拥有的