XYAxes.twinx¶
-
XYAxes.
twinx
()[source]¶ Mimics the builtin
twinx
method.- Parameters
ylabel, ylocator, yformatter, yticks, yticklabels, yminorlocator, yminorticks, ytickminor, yticklen, ytickrange, ytickdir, yticklabeldir, ytickrotation, ybounds, ymargin, ycolor, ylinewidth, ygrid, ygridminor, ygridcolor, ylocator_kw, yformatter_kw, yminorlocator_kw, ylabel_kw (optional) – Passed to
Axes.format
.label, locator, formatter, ticks, ticklabels, minorlocator, minorticks, tickminor, ticklen, tickrange, tickdir, ticklabeldir, tickrotation, bounds, margin, color, linewidth, grid, gridminor, gridcolor, locator_kw, formatter_kw, minorlocator_kw, label_kw (optional) – Prepended with
'y'
and passed toAxes.format
.
Note
This function 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.