XYAxes.altx¶
-
XYAxes.
altx
(*args, **kwargs)[source]¶ Alias and more intuitive name for
twiny
. The matplotlibtwiny
function generates two x axes with a shared (“twin”) y axis. Enforces the following settings.Places the old x axis on the bottom and the new x axis on the top.
Makes the old top spine invisible and the new bottom, left, and right spines invisible.
Adjusts the x axis tick, tick label, and axis label positions according to the visible spine positions.
Locks the old and new y axis limits and scales, and makes the new y axis labels invisible.