title: There is a class matplotlib.axes.AxesSubplot, but the module matplotlib.axes has no attribute AxesSubplot
body: <p>The code</p>
  
  <pre><code>import matplotlib.pyplot as plt
  fig = plt.figure()
  ax = fig.add_subplot(111)
  print type(ax)
  </code></pre>
  
  <p>gives the output</p>
  
  <pre><code>&lt;class 'matplotlib.axes.AxesSubplot'&gt;
  </code></pre>
  
  <p>Then the code</p>
  
  <pre><code>import matplotlib.axes
  matplotlib.axes.AxesSubplot
  </code></pre>
  
  <p>raises the exception</p>
  
  <pre><code>AttributeError: 'module' object has no attribute 'AxesSubplot'
  </code></pre>
  
  <p>To summarize, there is a class <code>matplotlib.axes.AxesSubplot</code>, but the module <code>matplotlib.axes</code> has no attribute <code>AxesSubplot</code>. What on earth is going on?</p>
  
  <p>I'm using Matplotlib 1.1.0 and Python 2.7.3.</p>