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 2 of 6 Topic 3535 of 3637
Post > Topic >>

Re: Date-time X axis

by sfeam <sfeam@[EMAIL PROTECTED] > Oct 7, 2008 at 03:37 PM

Reginald Beardsley wrote:

> Is gnuplot able to plot date data as follows intelligently?  Examining
> finance.dem suggests that it can't read dates for the X axis, but can
> label it w/ dates. The help function is completely opaque.
> 
> Thanks,
> Reg
> 
> 
> #Date,Open,High,Low,Close,Volume,Adj Close
> 2008-10-06,10322.52,10322.52,9503.10,9955.50,7956020000,9955.50
> 2008-10-03,10483.96,10844.69,10261.75,10325.38,6716120000,10325.38
> 2008-10-02,10825.54,10843.10,10368.08,10482.85,6285640000,10482.85
> 2008-10-01,10847.40,11022.06,10495.99,10831.07,5782130000,10831.07

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
 




 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 4:29:18 CST 2008.