Alias and more intuitive name for twinx. The matplotlib twiny function generates two x axes with a shared (“twin”) y axis. Enforces the following settings.

  • Places the old y axis on the left and the new y axis on the right.

  • Makes the old right spine invisible and the new left, bottom, and top spines invisible.

  • Adjusts the y axis tick, tick label, and axis label positions according to the visible spine positions.

  • Locks the old and new x axis limits and scales, and makes the new x axis labels invisible.