SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Lorenzo I. <lor...@gm...> - 2007年07月26日 23:24:21
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
From: Eric F. <ef...@ha...> - 2007年07月26日 23:40:15
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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /