python画图例子代码


  • matplotlib包,使得python可以使用类似matlab的命令
  • 双坐标,子图例子
fig, axes = plt.subplots( 2,1, figsize=(14, 14) )
ax = badrate.plot.bar('t_len', 'total', ax=axes[0])
ax2 = ax.twinx()
ax2.plot(ax.get_xticks(), badrate['badrate'], 'rs-')


ax_ = badrate1.plot.bar('t_len', 'total', ax=axes[1])
ax2_ = ax_.twinx()
ax2_.plot(ax_.get_xticks(), badrate1['badrate'], 'rs-')


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM