title: Pyplot - rescaling y axis after limiting x axis
body: <p>I'm trying to plot some data using pyplot, and then 'zoom in' by using xlim() the x axis. However, the new plot doesn't rescale the y axis when I do this - am I doing something wrong?</p>
  
  <p>Example - in this code, the plot y-axis range still takes a maximum of 20, rather than 10.:  </p>
  
  <pre><code>from pylab import *
  
  x = range(20)
  y = range(20)
  
  xlim(0,10)
  autoscale(enable=True, axis='y', tight=None)
  scatter(x,y)
  show()
  close()
  </code></pre>