Re: [Matplotlib-users] surface plot

2012-02-23 Thread Benjamin Root
On Thu, Feb 23, 2012 at 10:14 AM, David Craig dcdavem...@gmail.com wrote: Hi, I have an array defined by 3 variables p(x,z,t). I would like to produce a surface plot with colors defined by p and animate it. That is plot the value of p at all x and z, over time (t). My code to get p is below

Re: [Matplotlib-users] Surface Plot

2010-02-09 Thread Ted Kord
...@googlemail.com] *Sent:* Monday, February 08, 2010 12:00 PM *To:* Paul Hobson *Cc:* matplotlib-users@lists.sourceforge.net *Subject:* Re: [Matplotlib-users] Surface Plot On 8 February 2010 17:37, phob...@geosyntec.com wrote: Hey Ted, I don't quite understand how you're getting the Z data below

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
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 -

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread Ted Kord
Hi Paul This helped immensely. Thanks. 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

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread Ted Kord
On 8 February 2010 17:37, phob...@geosyntec.com wrote: 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.

Re: [Matplotlib-users] Surface Plot

2010-02-08 Thread PHobson
-users] Surface Plot On 8 February 2010 17:37, phob...@geosyntec.commailto:phob...@geosyntec.com wrote: 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

Re: [Matplotlib-users] surface plot...

2007-03-28 Thread John Hunter
On 3/28/07, jens haemmerling [EMAIL PROTECTED] wrote: I have problems to plot surfaces like f(x,y)=x*y... for example plot_surface([1,2,3], [4,5,6], [7,8,9]) doesn't work either... I imported the following: from numpy import * import pylab as p import matplotlib.axes3d as p3 does