我在x轴上有以下日期,图表并没有显示所有值。我需要什么设置来显示所有的x值?在
drray2 ['2019-04-23', '2019-04-25', '2019-04-29', '2019-04-30', '2019-05-01', '2019-05-02', '2019-05-06', '2019-05-13', '2019-05-15', '2019-05-16', '2019-05-20', '2019-05-23', '2019-05-24', '2019-05-28', '2019-06-11', '2019-06-12', '2019-06-14']
countarray2 [1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 3, 1]
p1=plt.bar(converted_dates_2,countarray2,color="Green", width=barWidth,label="second load")
plt.show()
对于x轴,可以使用频率1作为
使用您之前给出的代码完成答案
^{pr2}$我不太清楚为什么它没有为您显示,我用xticks属性在本地运行它: 代码:
图表是:
相关问题 更多 >
编程相关推荐