title: pyplot: loglog() with base e
body: <p>Python (and matplotlib) newbie here coming over from R, so I hope this question is not too idiotic. I'm trying to make a loglog plot on a natural log scale. But after some googling I cannot somehow figure out how to force pyplot to use a base e scale on the axes. The code I have currently:</p>
  
  <pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as pyplot 
  import math
  
  e = math.exp(1)
  pyplot.loglog(range(1,len(degrees)+1),degrees,'o',basex=e,basey=e)
  </code></pre>
  
  <p>Where <code>degrees</code> is a vector of counts at each value of <code>range(1,len(degrees)+1)</code>. For some reason when I run this code, pyplot keeps giving me a plot with powers of 2 on the axes. I feel like this ought to be easy, but I'm stumped...</p>
  
  <p>Any advice is greatly appreciated!</p>