- 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-')
转载于:https://www.cnblogs.com/bregman/p/6006049.html