Re: [Matplotlib-users] Problem using plot_surface.

2012-03-23 Thread Benjamin Root
The shapes of X, Y, and Z must match. After the mesh grid, Z no longer matches X and Y. Ben Root (I will be out of contact for at least a week, sorry I won't be able to help any further till then.) -- This SF email is sp

[Matplotlib-users] Problem using plot_surface.

2012-03-23 Thread David Craig
Hi, I have three variables I would like to plot using plot_surface but I keep getting the error given at the bottom. Anyone know what I am doing wrong?? My code is as follows, fig3 = plt.figure() ax = Axes3D(fig3) X = np.zeros((78,1)) Y = np.zeros((78,1)) Z = np.zeros((78,1)) for p in range(len(