title: How to force same size between matplotlib subplot image axes
body: <p>Suppose I have the following code to create three side-by-side images:</p>
  
  <pre><code>    n=10
      x = np.random.rand(n,1)
      y = np.random.rand(1,n)
      z = np.random.rand(n,n)
  
      fig, ax = plt.subplots(1, 3)
      ax[0].imshow(x)
      ax[1].imshow(z)
      ax[2].imshow(y)
  </code></pre>
  
  <p>However, the axes autoscale so that the vertical axis in the first image is larger than the vertical axis in the second.</p>
  
  <p><a href="https://i.stack.imgur.com/MdCkh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MdCkh.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to programmatically force all image dimensions of size <code>n</code> to look the same in the three plots, regardless of window size? I'm looking for a way to either link the axes or the images so that the vertical axis of the first plot is the same size as the vertical axis of the second plot, and the horizontal axis of the third plot is the same size as the horizontal axis of the second plot, regardless of window size. i.e. something like this:
  <a href="https://i.stack.imgur.com/8p1WF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/8p1WF.png" alt="enter image description here"></a></p>