Axis labels inverted in Basic usage doc

Hello there,

in this example from the basic usage tutorial page and notebook:

fig, (ax1, ax3) = plt.subplots(1, 2, figsize=(8, 2.7), layout='constrained')
l1, = ax1.plot(t, s)
ax2 = ax1.twinx()
l2, = ax2.plot(t, range(len(t)), 'C1')
ax2.legend([l1, l2], ['Sine (left)', 'Straight (right)'])

ax3.plot(t, s)
ax3.set_xlabel('Angle [°]')
ax4 = ax3.secondary_xaxis('top', functions=(np.rad2deg, np.deg2rad))
ax4.set_xlabel('Angle [rad]')

It seams the labels for ax3 and ax4 are inverted, 3 is in radians and 4 is in degrees.

Yes, that does appear to be incorrect.

1 Like