matplotlib.pyplot.twinx# matplotlib.pyplot.twinx(ax=None)[源代码][源代码]# 创建并返回一个共享 x 轴的第二个 Axes。新的 Axes 将覆盖 ax*(如果 *ax 为 None,则覆盖当前 Axes),并且其刻度将位于右侧。 示例 不同尺度的图表 使用 matplotlib.pyplot.twinx 的示例# 不同尺度的图表 Plots with different scales