Dear All,

I would like to try out matplotlib for some basic 3D plotting.

First of all, is matplotlib suitable for that? I am asking since I read on the website that matplotlib's selling point is 2D plotting.

What I would like to plot should be relatively easy: say that I have a distribution (e.g. think of a Gaussian) whose features evolve as time goes on.

I aim at a 3D plot where time is the z coordinate, x is the independent variable of my distribution at t fixed and y=f(x) is my Gaussian distribution.

The data I would like to plot are in the following form:

f(t_1,x_1),f(t_1,x_2)...f(t_1,x_n)

f(t_2,x_1),f(t_2,x_2)...f(t_2,x_n)

.

f(t_m,x_1),f(t_m,x_2)...f(t_m,x_n)

and I know both the time sequence {t_1,t_2...t_m} and the x sequence {x_1,x_2,x_n}.

I got something roughly similar to what I had in mind using R, but I do not think it is the right tool for that.

Should I resort to Gnuplot by necessity or is Matplotlib up to the task?

Judging from what I see on:

http://www.scipy.org/Cookbook/Matplotlib/mplot3D

that would seem the case.

I have been trying to modify the last example with some artificially generated data, but so far unsuccessfully.

Any suggestions? I suppose I am not the first one to come across this!

Many thanks

Lorenzo

3D plotting in mpl should be considered, at best, to be experimental and unsupported. Some interesting and fairly extensive capabilities were added but have not been consistently maintained. Mpl is at heart 2D.

Eric

Lorenzo Isella wrote:

## ยทยทยท

Dear All,

I would like to try out matplotlib for some basic 3D plotting.

First of all, is matplotlib suitable for that? I am asking since I read on the website that matplotlib's selling point is 2D plotting.

What I would like to plot should be relatively easy: say that I have a distribution (e.g. think of a Gaussian) whose features evolve as time goes on.

I aim at a 3D plot where time is the z coordinate, x is the independent variable of my distribution at t fixed and y=f(x) is my Gaussian distribution.

The data I would like to plot are in the following form:

f(t_1,x_1),f(t_1,x_2)...f(t_1,x_n)

f(t_2,x_1),f(t_2,x_2)...f(t_2,x_n)

.

f(t_m,x_1),f(t_m,x_2)...f(t_m,x_n)

and I know both the time sequence {t_1,t_2...t_m} and the x sequence {x_1,x_2,x_n}.

I got something roughly similar to what I had in mind using R, but I do not think it is the right tool for that.

Should I resort to Gnuplot by necessity or is Matplotlib up to the task?

Judging from what I see on:

http://www.scipy.org/Cookbook/Matplotlib/mplot3D

that would seem the case.

I have been trying to modify the last example with some artificially generated data, but so far unsuccessfully.

Any suggestions? I suppose I am not the first one to come across this!

Many thanks

Lorenzo

-------------------------------------------------------------------------

This SF.net email is sponsored by: Splunk Inc.

Still grepping through log files to find problems? Stop.

Now Search log events and configuration files using AJAX and a browser.

Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________

Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users