|
From: Bernd B. <be...@bi...> - 2005-09-18 17:28:35
|
Dear group, I am trying to plot the difference between to dates. I got strange errors and then tried the script below. In both gnuplot 3.7 and 4.0 it seems that the third column is not read correctly. Plotting the second column with dates results in an empty range. When the time (H:M:S) is made different is the two data entries gnuplot does not give an empty range error, but does not plot the datapoints at the correct date. Does anyone know how to work with more than one date? The script file follow below. Thanks! Regards, Bernd set xdata time set timefmt "%Y-%m-%d %H:%M:S" set yrange [0:4] set format x "%d %b" plot "-" using 2:1 1 2005-06-02 12:12:12 2005-07-10 12:12:12 3 2005-06-10 12:12:12 2005-08-15 12:12:12 e pause -1 plot "-" using 3:1 1 2005-06-02 12:12:12 2005-07-10 12:12:12 3 2005-06-10 12:12:12 2005-08-15 12:12:12 e pause -1 plot "-" using 2:1 1 2005-07-10 12:12:12 3 2005-08-15 12:12:12 e pause -1 |