|
From: Tait <gnu...@t4...> - 2015-10-21 23:44:43
|
> > --------------------------- > > set xdata time > > set timefmt "%s" > > > > plot "-" using 1:2 with lp > > 0 0.0 > > 1 0.5 > > 2 1.0 > > 3 1.5 > > EOF > > --------------------------- > > ... > This answer is for gnuplot version 5. > ... > 2) If the input is time-in-seconds but the output is some clock time > (hours:minutes:seconds) then you want the following. Notice there is > no "set xdata time". > > set xtics time format "%H:%M:%S" > plot '-' using 1:2 with lp There's nothing special about 0, 1, 2, 3... it could just as well be 1445469700 0.0 1445469701 0.5 1445469702 1.0 1445469703 1.5 Does this mean "set xdata time" is deprecated? Or only deprecated for the "%s" timefmt? I'm not sure I see why "timefmt '%s'" works without "set xdata", or "set xdata" works with e.g. "timefmt '%S'", but the particular combination of xdata and %s breaks. And I'm not sure it will be clear to other or new users, either. There must be some principle behind the behavior being what it is, but I don't see it. Can you explain more? |