我试图在同一个图上绘制两个数据集(2007年和2014年),但它们相互重叠。有没有办法让这些条并排显示
fig, ax = plt.subplots()
df07percent.plot.barh(alpha=0.8, color='r', label='2007')
df14percent.plot.barh(alpha=0.8, label='2014')
plt.title('State of WA Church Attendance')
plt.legend()
plt.xlabel('% of Pew Research Survey Respondents', fontsize=12)
plt.show()
目前没有回答
相关问题 更多 >
编程相关推荐