Im posting here, since reading the gnuPlot docs did not really make
clear to me, if it can do what i am trying to achieve.
I have sets of simple XY-data, which i need to plot over time.
So, given that in gnuPlot, Z-axis is the vertical one, i'd have all my
data-points as XZ-data, and multiple of these XZ-datasets on the Y-
axis (time).
Can anyone tell me whether this is possible with gnuPlot? If yes, how
about formatting the dates on the Y-Axis properly?
cheers,
--qu
I don't know what your really want to do, but a 3D plot is very simple
with
splot 'data.dat' u a:b:c,
where a:b:c are the columns to plot as xyz coordinates.
If you want to make movies, it's also very simple in the gif format.
Also the font handling with gnuplot 4.5 (I think it worked also well in
4.3 already) for the gif terminal has been improved a lot.
Thanks to the great developers of gnuplot who make this program better
with each new release!
--
Hendrik van Hees
Institut fᅵr Theoretische Physik
Justus-Liebig-Universitᅵt Gieᅵen
http://theorie.physik.uni-giessen.de/~hees/
Hm, i was already afraid it did not express myself clear enough :(
Well then:
I just have several 2D XY-Plots, which i want to plot over time.
Means: Each of these plots has a time
associated with it, and i want to plot all of them in a 3D-Plot, where
XZ axis show my datapoints, and Y-axis
the time of each dataset.
Actually a quite simple task, but i wasnt able to find out whether
gnuPlot is capable to do that...
regards,
--qu
To me, it seems that what you want to have is a waterfall plot. If
that is the case, you could do the following (the exact details might
depend on how you data file is organised)
splot 'foo' u 1:(0):2 w l, '' u 3:(1):4, '' u 5:(1):6 w l etc.
i.e., you plot the 2nd column vs. the first one in 3D, as the y
dimension is restricted to the y=0 plane.
Cheers,
Zoltán
I tried following commands:
set ydata time;
set timefmt "%d/%m/%y/%H:%M";
set format y "%d/%m/%y/%H:%M";
splot "datafile" using 1:2:3;
exit;
with following data:
1 15/02/2009/10:00 1
2 15/02/2009/10:00 2
3 15/02/2009/10:00 3
4 15/02/2009/10:00 4
5 15/02/2009/10:00 5
which does not really give me what i expected.
Dates are not shown correctly, instead gnuPlot starts to count up
dates from some imaginary date on the y-axis.
What i simply want is:
All these records show XY-points on 1 specific date/time.
Y-Axis should show this date, XZ the data as specified in the file.
Which mistake am i doing here? Any help would be greatly
appreciated...
regards,
--qu
> Hi!
>
> I tried following commands:
>
> set ydata time;
> set timefmt "%d/%m/%y/%H:%M";
> set format y "%d/%m/%y/%H:%M";
> splot "datafile" using 1:2:3;
> exit;
>
> with following data:
>
> 1 15/02/2009/10:00 1
> 2 15/02/2009/10:00 2
> 3 15/02/2009/10:00 3
> 4 15/02/2009/10:00 4
> 5 15/02/2009/10:00 5
This date-format needs maybe:
set timefmt "%d/%m/%Y/%H:%M";
set format y "%d/%m/%Y/%H:%M"
---------------------^-------
LG