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


|