Python ggplot中的主题不起作用
在python中使用ggplot创建条形图Python ggplot中的主题不起作用,python,matplotlib,ggplot2,python-ggplot,Python,Matplotlib,Ggplot2,Python Ggplot,在python中使用ggplot创建条形图 plot_bar = ggplot(df_aggr , aes( x='Industry',weight='Brand_Value')) print plot_bar + geom_bar(stat='identity') 这给 但是,当尝试使用主题(axis\u text\u x=element\u text(angle=90))垂直对齐xtick标签(行业字段)时,它不起作用,而是将条形图的开头作为值 plot_bar =
plot_bar = ggplot(df_aggr , aes( x='Industry',weight='Brand_Value'))
print plot_bar + geom_bar(stat='identity')
这给
但是,当尝试使用主题(axis\u text\u x=element\u text(angle=90))垂直对齐xtick标签(行业字段)时,它不起作用,而是将条形图的开头作为值
plot_bar = ggplot(df_aggr , aes( x='Industry',weight='Brand_Value'))
print plot_bar + geom_bar(stat='identity') +theme( axis_text_x = element_text(angle=90))
如何使行业x记号标签在x轴上垂直对齐?
适用于R代码。
适用于python
适用于R代码。
适用于python