Traceback (most recent call last): File "test_plot3D.py", line 25, in ax.plot_wireframe(X, Y, Z) File "/usr/lib/python2.5/site-packages/matplotlib/axes3d.py", line 562, in plot_wireframe txlines = [tX[i] for i in cii] IndexError: index out of bounds