Fix secondary y axis

There was a cut-and-paste error in this function, which referred to the X axis instead of the Y axis settings.