title: Matplotlib scale axis lengths to be equal
body: <p>I have 2 subplots:</p>
  
  <pre><code>plt.subplot(1, 2, 1)
  plt.plot(x, y)
  plt.subplot(1, 2, 2)
  plt.plot(u, v)
  </code></pre>
  
  <p>The range of <code>u</code> and <code>v</code> are [0,1] for both, and the range of <code>x</code> and <code>y</code> is random, and <code>x</code> is different from <code>y</code>. I would like to make a both subplots squared, so the length of the x axis should be equal to the length of the y axis. For the second subplot it is easy using another SO question:</p>
  
  <pre><code>plt.subplot(1, 2, 1)
  plt.plot(x, y)
  plt.subplot(1, 2, 2)
  plt.plot(u, v)
  plt.axis('scaled')
  </code></pre>
  
  <p>However this method does not work for the first subplot, it scales down the y axis to something really small as the values are in a small range, while x axis is basically in range [0,1], so it has the same scaling as the second subplot. </p>
  
  <p>How can i scale the y axis of the first subplot to be equal to the other axis lengths?</p>