Hi all!
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
|
|
0
|
|
|
|
Reply
|
quaylar
|
11/28/2009 9:40:42 PM |
|
quaylar wrote:
> Hi all!
>
> 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?
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/
|
|
0
|
|
|
|
Reply
|
Hendrik
|
11/29/2009 10:49:20 AM
|
|
On 29 Nov., 11:49, Hendrik van Hees <Hendrik.vanH...@physik.uni-
giessen.de> wrote:
> 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!
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
|
|
0
|
|
|
|
Reply
|
quaylar
|
11/29/2009 11:09:57 AM
|
|
> 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...
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=3D0 plane.
Cheers,
Zolt=E1n
|
|
0
|
|
|
|
Reply
|
Zoltan
|
11/29/2009 12:02:19 PM
|
|
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
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
|
|
0
|
|
|
|
Reply
|
quaylar
|
12/3/2009 4:08:20 PM
|
|
quaylar à écrit :
> 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
|
|
0
|
|
|
|
Reply
|
Laurianne
|
12/3/2009 5:09:37 PM
|
|
|
5 Replies
584 Views
(page loaded in 0.088 seconds)
Similiar Articles: Plotting XY-data over time - comp.graphics.apps.gnuplotHi all! 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 ... Formatting date/time display on axis. - comp.graphics.apps.gnuplot ...Plotting XY-data over time - comp.graphics.apps.gnuplot Plotting XY-data over time - comp.graphics.apps.gnuplot If yes, how about formatting the dates on the Y-Axis ... Simple XY Plot - comp.lang.java.guiPlotting XY-data over time - comp.graphics.apps.gnuplot Hi all! Im posting here, since reading the gnuPlot docs did not really make clear to me, if it can do what i am ... Store data by clicking on data point in plot - comp.soft-sys ...Plotting XY-data over time - comp.graphics.apps.gnuplot I have sets of simple XY-data, which i need to plot over time. ... vertical one, i'd have all my data-points as XZ ... plotting a 3D data in plane by color - comp.soft-sys.matlab ...Plotting XY-data over time - comp.graphics.apps.gnuplot I don't know what your really want to do, but a 3D plot is very simple with splot 'data.dat' u a:b ... one in 3D ... Offset XY Plot - comp.soft-sys.matlabPlotting XY-data over time - comp.graphics.apps.gnuplot Offset XY Plot - comp.soft-sys.matlab Plotting XY-data over time - comp.graphics.apps.gnuplot Offset XY Plot - comp ... how to plot ecg with the time axis - comp.soft-sys.matlab ...Plotting XY-data over time - comp.graphics.apps.gnuplot how to plot ecg with the time axis - comp.soft-sys.matlab ... Plotting XY-data over time - comp.graphics.apps ... 2D Waterfall plot - comp.soft-sys.matlabPlotting XY-data over time - comp.graphics.apps.gnuplot 2D Waterfall plot - comp.soft-sys.matlab Plotting XY-data over time - comp.graphics.apps.gnuplot 2D Waterfall plot ... How to get WATERFALL Plot? - comp.soft-sys.matlabPlotting XY-data over time - comp.graphics.apps.gnuplot To me, it seems that what you want to have is a waterfall plot. If that is the case, you could do the following ... Plot 2D graph by reading .dat file - comp.soft-sys.matlab ...Plotting XY-data over time - comp.graphics.apps.gnuplot... Well then: I just have several 2D XY-Plots ... all, I have a segment of code that plots a line graph of ... Plotting XY-data over time - comp.graphics.apps.gnuplot | Computer ...Hi all! 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 ... Creating an XY Scatterplot in ExcelIn summary, data suitable for chart types other than the XY scatter plot: •= Data that changes over time and that compares items. For example, sales by 7/19/2012 7:52:16 PM
|