by =?ISO-8859-1?Q?Hans-Bernhard_Br=F6ker?= <HBBroeker@[EMAIL PROTECTED]
>
Jun 9, 2008 at 11:20 PM
worldeb@[EMAIL PROTECTED]
wrote:
> I want to create plot where data from "20080524 22:00:00" to "20080526
> 02:00:00" are showed in other color.
I suspect you'll need the development version for that. You'll need at
least the new functionalities of strptime() and string expressions. I'm
not even sure it can be done with those:
> plot 'dat.txt' u 2 : ( $2 >= "20080524 22:00:00" && $2 <= "20080526
> 02:00:00" ? $1/10 : 1/0 ) t '' ps 0.4 pt 1 lt 2
Timefmt data and extended 'using' specifications don't work particularly
well together.
> as I understand gnuplot approximate date to nearest date.
You understood that incorrectly. gnuplot handles dates and times in
seconds.
> But if I use range - this work correctly:
> set xrange ["20080524 22:00:00":"20080526 02:00:00"]
That's because xrange was specifically extended to allow that. Strings
in other contexts don't magically turn into numbers.