Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > Re: Date-time X...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 3535 of 3637
Post > Topic >>

Re: Date-time X axis

by Reginald Beardsley <user@[EMAIL PROTECTED] > Oct 9, 2008 at 06:24 AM

Tim Hoffmann wrote:
> Reginald Beardsley wrote:
> 
>> sfeam wrote:
>>
>>> set xdata time
>>> set timefmt "%Y-%m-%d"
>>> set datafile separator ","
>>>
>>> plot 'data' using 1:2:4:3:5 with candlesticks
>>>
>>> If you don't like the default x-axis label format, you can change 
>>> that too:
>>>
>>> set format x"%Y-%m-%d"
>>> set xtics rotate by -45
>>
>>
>>
>> Thanks.  Works great, but I can't figure out how to control the 
>> xrange. No permutation of the date seems to have the correct effect. 
>> [1980-1-1:]  results in 2000-1-1 as the left limit.  I've tried lots 
>> of permutations of date format w/ the same result.
> 
> Try ["1980-1-1":]
> timefmt converts a string to a number meaning the seconds from beginning

> of 2000/1/1. You just supplied an int (1980-1-1 = 1978) so the 
> conversion is left out. Your 1978 is approximatly 2000/1/1 0:30h. Thats 
> why you saw 2000-1-1.


Thanks.  That works nicely and also explains the odd coordinates 
produced by the mouse.  Is there a way to make the mouse date formated 
labels?
 




 6 Posts in Topic:
Date-time X axis
Reginald Beardsley <us  2008-10-07 17:12:54 
Re: Date-time X axis
sfeam <sfeam@[EMAIL PR  2008-10-07 15:37:42 
Re: Date-time X axis
Reginald Beardsley <us  2008-10-08 12:21:44 
Re: Date-time X axis
Tim Hoffmann <tim.hoff  2008-10-08 21:17:23 
Re: Date-time X axis
Reginald Beardsley <us  2008-10-09 06:24:29 
Re: Date-time X axis
=?ISO-8859-1?Q?Hans-Bernh  2008-10-10 22:27:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Fri Dec 5 6:37:52 CST 2008.