Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Re: compare tim...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3350 of 3655
Post > Topic >>

Re: compare time date.

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.
 




 3 Posts in Topic:
compare time date.
worldeb@[EMAIL PROTECTED]  2008-06-09 10:13:21 
Re: compare time date.
=?ISO-8859-1?Q?Hans-Bernh  2008-06-09 23:20:24 
Re: compare time date.
worldeb@[EMAIL PROTECTED]  2008-06-09 17:37:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 22:34:19 PST 2009.