autoscale just one axis?

locator = ax.xaxis.get_major_
                              ^^^

cut and paste error -- should read

  locator = ax.xaxis.get_major_locator()

JDH