Forgive me if this is an old question, but I just loaded mplot3d and was
attempting to work through a couple of the examples on the Matplotlib
website.  The problem is that whenever I try to make a call to a function
that requires an argument of projection='3d' (such as:   ax =
fig.add_subplot(111, projection='3d')), Python gives me the following error:

 

Traceback (most recent call last):

  File "<pyshell#12>", line 1, in <module>

    ax = fig.add_subplot(111, projection='3d')

  File "C:\Python26\lib\site-packages\matplotlib\figure.py", line 677, in
add_subplot

    projection_class = get_projection_class(projection)

  File "C:\Python26\lib\site-packages\matplotlib\projections\__init__.py",
line 61, in get_projection_class

    raise ValueError("Unknown projection '%s'" % projection)

ValueError: Unknown projection '3d'

 

Running help on fig.add_subplot does not show '3d' as a valid projection
type for this function.

 

What's going on, and how do I fix it?

 

I'm running Python 2.6.6 on Windows 7.

 

Thanks in advance.

 

/s/

Pat

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to