help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plotting time series in Octave


From: indium
Subject: Re: plotting time series in Octave
Date: Tue, 27 Mar 2012 14:13:51 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Mar 26, 2012 at 01:16:52PM -0400, financial engineer wrote:
> 
> 
> hi,
> I have formatted the data as follows:
> data=([C{1:7,5}])
> plot(data)
> set(gca(),'xtick',1:7)
> datalabels=([C{1:7,1}])
> set(gca(),'xticklabel',datalabels)
> 
> the difficulty I am having is that this is what datalabels returns:
> datalabels=2011-12-06 02:15:002011-12-06 02:16:002011-12-06 
> 02:17:002011-12-06 02:18:00
> 
> Can somebody please guide me on how to create my datalabels correctly, so I 
> can use the date as my x-axis.
>                                         

Hi,
install the 'financial' package, so that you can use dateaxis(). I haven't 
tried it myself, but it seems to be the solution to your problem.

octave> pkg -forge install financial


reply via email to

[Prev in Thread] Current Thread [Next in Thread]