I also seem to have some other 3D plotting problems. Again, following some of the demo/test advice in the cookbook, I tried things like
import pylab as p import matplotlib.axes3d as P3 P3.test_surface() and get errors (seems Axes3D needs a figure, no?). I'm using matplotlib version 0.87.7. Any ideas? Thx, --b In [49]: P3.test_surface() ------------------------------------------------------------------------ --- exceptions.TypeError Traceback (most recent call last) /Users/bthom/belinda/mills/aicourse/material/week12/lec/examples/ <ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes3d.py in test_surface() 739 740 def test_surface(): --> 741 ax = Axes3D() 742 743 X,Y,Z = get_test_data(0.05) TypeError: __init__() takes at least 2 arguments (1 given) > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/axes3d.py(741)test_surface() 740 def test_surface(): --> 741 ax = Axes3D() 742 ipdb> In [50]: P3.test_surface? Type: function Base Class: <type 'function'> String Form: <function test_surface at 0x304a070> Namespace: Interactive File: /Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/matplotlib/axes3d.py Definition: P3.test_surface() Docstring: <no docstring> In [51]: P3.test_surface() ------------------------------------------------------------------------ --- exceptions.TypeError Traceback (most recent call last) /Users/bthom/belinda/mills/aicourse/material/week12/lec/examples/ <ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes3d.py in test_surface() 739 740 def test_surface(): --> 741 ax = Axes3D() 742 743 X,Y,Z = get_test_data(0.05) TypeError: __init__() takes at least 2 arguments (1 given) > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/axes3d.py(741)test_surface() 740 def test_surface(): --> 741 ax = Axes3D() 742 ipdb> In [52]: P3.test_contour() ------------------------------------------------------------------------ --- exceptions.TypeError Traceback (most recent call last) /Users/bthom/belinda/mills/aicourse/material/week12/lec/examples/ <ipython console> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages/matplotlib/axes3d.py in test_contour() 750 751 def test_contour(): --> 752 ax = Axes3D() 753 754 X,Y,Z = get_test_data(0.05) TypeError: __init__() takes at least 2 arguments (1 given) > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/axes3d.py(752)test_contour() 751 def test_contour(): --> 752 ax = Axes3D() 753 ipdb> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users