title: how to import matplotlib.pyplot
body: <p>I tried to run, on IDLE, the following <a href="http://matplotlib.sourceforge.net/api/pyplot_api.html" rel="nofollow">example code</a>, which was copied from matplotlib's official website:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  x = np.arange(0, 5, 0.1);
  y = np.sin(x)
  plt.plot(x, y)
  </code></pre>
  
  <p>But I got lots of errors:</p>
  
  <pre><code>Traceback (most recent call last):
    File "D:/temp/pyplot_test.py", line 2, in &lt;module&gt;
      import matplotlib.pyplot as plt
    File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 23, in &lt;module&gt;
      from matplotlib.figure import Figure, figaspect
    File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 18, in &lt;module&gt;
      from axes import Axes, SubplotBase, subplot_class_factory
    File "C:\Python27\lib\site-packages\matplotlib\axes.py", line 14, in &lt;module&gt;
      import matplotlib.axis as maxis
    File "C:\Python27\lib\site-packages\matplotlib\axis.py", line 12, in &lt;module&gt;
      import matplotlib.patches as mpatches
    File "C:\Python27\lib\site-packages\matplotlib\patches.py", line 1615, in &lt;module&gt;
      class BoxStyle(_Style):
    File "C:\Python27\lib\site-packages\matplotlib\patches.py", line 2068, in BoxStyle
      {"AvailableBoxstyles": _pprint_styles(_style_list)}
    File "C:\Python27\lib\site-packages\matplotlib\patches.py", line 1539, in _pprint_styles
      args, varargs, varkw, defaults =  inspect.getargspec(cls.__init__)
  AttributeError: 'module' object has no attribute 'getargspec'
  </code></pre>
  
  <p>My computer is a Windows XP machine. Python and matplotlib (and other site packages such as numpy) were installed cleanly using <a href="http://code.google.com/p/pythonxy/" rel="nofollow">Python(x,y)</a>. Any idea how to resolve this issue?</p>