twinx() (Matplotlib)

ax.twinx() creates a second y-axis that shares the same x-axis, so you can plot two series with different units or scales on one chart. ax.twiny() does the…