Plotting polygons in 3D

Hello all,

I am a new matplotlib user and am trying to plot simple polygons in 3D. Such as cubes and tetrahedra.

As a start I began exploring the axes3D example listed on the scipy page.

There are two errors that occur one is a missed tab on line 364 - 365 before the if statement. Removing this error then provides the following problem when running the code. I followed the call through module and cannot figure out why the class objects in the module are not being read properly. The error is shown below.




Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\matplotlib\", line 15, in <module>
    from axes import Axes
  File "C:\Python25\Lib\site-packages\matplotlib\", line 18, in <module>
    from collections import RegularPolyCollection, PolyCollection, LineCollection, QuadMesh, \
ImportError: cannot import name RegularPolyCollection