Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python ggplot中的主题不起作用_Python_Matplotlib_Ggplot2_Python Ggplot - Fatal编程技术网

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 =

在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 = 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