title: Matplotlib secondary axis with equal aspect ratio
body: <p>I'm trying to create a secondary axis to an axis with equal aspect ratio using <code>twinx()</code>, however, as can be seen in the example below, the secondary axis does not match the aspect ratio of the original.</p>
  
  <p>Is there something additional that needs to be done, or is this a bug in matplotlib?</p>
  
  <hr>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>from matplotlib import pyplot as plt
  
  fig = plt.figure()
  ax1 = fig.add_subplot(111, adjustable='box-forced', aspect='equal')
  ax2 = ax1.twinx()
  plt.show()
  </code></pre>
  
  <p><strong>Output figure:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ny6iK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ny6iK.png" alt="matplotlib output"></a></p>