title: Matplotlib: move Origin to upper left corner
body: <p>In Matlab, the plot is to be made such that origin is on top-left corner, x-axis is positive south to the origin, y-axis is positive east to the origin; x-axis is numbered on the left margin and y-axis is labelled on the top margin.</p>
  
  <pre><code>figure();
  set(gca,'YAxisLocation','Right','YDir','reverse')
  axis([0 10 0 10]);
  daspect([1,1,1])
  grid on
  view([-90 -90])
  </code></pre>
  
  <p>How to achieve the same in Python? I proceeded like:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.figure(1)
  
  plt.axis([40, 160, 0, 0.03])
  plt.grid(True)
  plt.show()
  </code></pre>
  
  <p>What is the python equivalent for:</p>
  
  <ol>
  <li><code>set(gca,'YAxisLocation','Right','YDir','reverse')</code></li>
  <li><code>daspect([1,1,1])</code></li>
  <li><code>view([-90 -90])</code></li>
  </ol>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>figure
  set(gca,'YAxisLocation','right','XTick',0:15,'YDir','reverse')
  axis([0 16 0 16]);
  daspect([1,1,1])
  hold on
  text(2,8,'CHN');
  text(8,2,'USA');
  view([-90 -90])
  </code></pre>
  
  <p>Output is:</p>
  
  <p><img src="https://i.stack.imgur.com/RbzzP.png" alt="enter image description here"></p>