【问题标题】:How to arrange the x axis label in Python如何在 Python 中排列 x 轴标签
【发布时间】:2020-04-10 02:58:46
【问题描述】:

我已经用python尝试了以下代码

df1= df.groupby(['FCR','PRIORITY']) ['FCR'].count()  
df1.plot(kind='bar' , figsize = (15,7) )

但我没有得到想要的输出,如下图所示

【问题讨论】:

标签: python pandas data-visualization data-science


【解决方案1】:

使用plt.xlabel("...", weight = '..', size = '...') https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.xlabel.html

【讨论】:

猜你喜欢
  • 2013-12-13
  • 2018-02-06
  • 2019-09-02
  • 1970-01-01
  • 1970-01-01
  • 2012-03-13
  • 1970-01-01
  • 2020-04-12
  • 2021-11-08
相关资源
最近更新 更多