Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > splot for somet...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3410 of 3637
Post > Topic >>

splot for something matrix-like, multiple surfaces, etc.

by Dave the Funkatron <dave.rudolf@[EMAIL PROTECTED] > Jul 17, 2008 at 04:40 PM

Hey all,

I'm pretty fresh to gnuplot, so sorry if this is a noob questions. I'm
really just trying to get a feel for what it is capable of.  I tried
googling around, but couldn't find what I was looking for.

I have a 3d surface that I would like to plot. I have two independent
variables, one of which is time, and the other is a parameter I am
tweaking. The data is in a file is such that the first column is a
time value, and the subsequent columns contain data for different
tweakings of the other independent variable. So, the data file looks
something like this:

time  tweak1  tweak2  tweak3....
0  0.10  0.20  0.30
1  0.11  0.21  0.31
2  0.12  0.22  0.32
3  0.13  0.23  0.33
4  0.14  0.24  0.34
5  0.15  0.25  0.35
6  0.16  0.26  0.36
....

I can easily get gnuplot to plot each tweak column as a line. I can
also plot it as a matrix, if the time and tweak values are evenly
spaced, but I can't always make that assumption (and I'd rather not
have a distorted plot, if I can avoid it).

So,  I was wondering if there were a way to get this table data to
plot it as a 3D surface, without reformatting the file so that each
line is an (x y z) tripplet? (the data file would be large, since most
of the values would be redundant).

Related to that, I would like to plot several surfaces in the same
plot. This seems to be doable, with a command like

    splot 100*sin(x)*cos(y), -sqrt(x*x*y*y)

However, it renders quite badly (at least on Debian 2.6.24-4, though
haven't tried other versions). The problem is that there appears to be
no attempt to determine proper depth when rendering each surface. So,
even though much of the second surface is "behind" the first surface
(w.r.t. the viewing angle), the second surface is always in the
foreground. Is this a limitation to gnuplot, or is there a way around
it?

Thanks.

Dave
 




 2 Posts in Topic:
splot for something matrix-like, multiple surfaces, etc.
Dave the Funkatron <da  2008-07-17 16:40:40 
Re: splot for something matrix-like, multiple surfaces, etc.
=?ISO-8859-1?Q?Hans-Bernh  2008-07-18 21:43:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 1:47:52 CST 2008.