Forum Archive

Matplotlib twins does not function

cvp

I try to use matplotlib TWINS like in a sample (link text)but it is refused..
I only want to display y-axis values/ticks on both sides (same scale).
Thanks for your help

cvp

It seems that twinx and twiny exist but not twins!

cvp

Resolved:

ax2 = ax1.twinx()
ax2.set_ylim(ax.get_ylim())