Hey Ted, I don't quite understand how you're getting the Z data below. But if you have 3D data in X, Y, and Z 1D-arrays, the griddata function should work for you. http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata
HTH, -paul ------------------------------------- From: Ted Kord [mailto:teddy.k...@googlemail.com] Sent: Saturday, February 06, 2010 1:05 PM To: matplotlib-users@lists.sourceforge.net Subject: [Matplotlib-users] Surface Plot Hi I'd like to generate a surface plot using mplot3d. However, Z is not a function of X and/or Y. It's just a set of scalar values. So, the following doesn't work: X = np.arange(2, 102, 2) Y = np.arange(0, 15.15, 0.15) X, Y = np.meshgrid(X, Y) Z = f[2] ax.plot_surface(X, Y, Z, rstride=1, cstride=1, cmap=cm.jet) Is there a way that I can do this? Thank you. Ted ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users