title: How to set the axis limit in a matplotlib plt.polar plot
body: <p>Say I have the following polar plot:</p>
  
  <pre><code>a=-0.49+1j*1.14
  plt.polar([0,angle(x)],[0,abs(x)],linewidth=5)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/0pTxV.png" alt="matplotlib polar plot"></p>
  
  <p>And I'd like to adjust the radial limits to 0 to 2.</p>
  
  <p>What is the best way to do this?</p>
  
  <p>Note that I am asking specifically about the <code>plt.polar()</code> method (as opposed to using <code>polar=True</code> parameter in a normal plot common in similar questions).</p>
  
  <p>This seems to work, unless I'm plotting from the console (Spyder, Win7):</p>
  
  <pre><code>&gt;&gt;&gt; ax=plt.gca()
  &gt;&gt;&gt; ax.set_rlim(0,2)
  </code></pre>