matplotlib.pyplot.twinx

matplotlib.pyplot.twinx(ax=None)[源代码]

创建并返回共享 x 轴。新轴将覆盖 ax (或当前轴,如果 axNone ),它的滴答声就在右边。

实例

不同比例尺的图

使用实例 matplotlib.pyplot.twinx