title: How to position an axes in a figure relative to another axes?
body: <p>When laying out a figure in MATLAB, typing <code>axis equal</code> ensures that no matter what the <em>figure</em> dimensions, the <em>axes</em> will always be square:</p>
  
  <p><img src="https://i.stack.imgur.com/VD7Xw.png" alt="enter image description here"></p>
  
  <p>My current problem is that I want to add a second axes to this plot. Usually, that's no problem; I would just type <code>axes([x1 y1 x2 y2])</code>, and a new square figure would be added with corners at <code>(x1, y1), (x2, y2)</code>, which is a fixed location <em>relative to the figure</em>. The problem is, I want this new axes to be located at a fixed location relative <em>to the first axes</em>.</p>
  
  <p>So, my questions are:</p>
  
  <ol>
  <li>Does anyone know how I can position an axes in a figure by specifying the location relative to another axes?</li>
  <li>Assuming I can do 1, how can I have this new axes remain in the same place even if I resize the figure?</li>
  </ol>