1、定义绘制地板
f,ax=plt.subplots()
2、在地板上绘制折线图
sinfo[[‘MONITOR_DAY’, ‘UNDER105’]].plot(‘MONITOR_DAY’, ‘UNDER105’, ax=ax)
3、定义组合图底板
ax1=ax.twinx()
4、在底板上绘制柱状图
sinfo[[‘MONITOR_DAY’,‘UNDER115’, ‘UNDER110’, ‘UNDER105’, ‘UNDER100’, ‘UNDER95’, ‘OVER95’]].plot.bar(stacked=True,ax=ax1)
python pandas 绘制组合图
最新推荐文章于 2023-07-10 15:00:00 发布