From: Eric Nilsson on
Hi,

Is it possible in MATLAB to specify the values on the x- and y-axis? In my case I have a time series with one value per month. When i make a simple plot the x-axis shows digits 0,1,...,nbrofmonths . Is there away to make the plotfunction write Jan, Feb,...,Endmonth instead?

Sincerely,

Adrian
From: Wayne King on
"Eric Nilsson" <orkidea.wise(a)gmail.com> wrote in message <huth7g$l0u$1(a)fred.mathworks.com>...
> Hi,
>
> Is it possible in MATLAB to specify the values on the x- and y-axis? In my case I have a time series with one value per month. When i make a simple plot the x-axis shows digits 0,1,...,nbrofmonths . Is there away to make the plotfunction write Jan, Feb,...,Endmonth instead?
>
> Sincerely,
>
> Adrian

Hi Adrian, yes, see the help for

>>doc datevec
>>doc datestr
>>doc datetick

Wayne
From: Eric Nilsson on
Thank you Wayne, it solved my problem.

Sincerely,

Adrian
From: Walter Roberson on
Eric Nilsson wrote:

> Is it possible in MATLAB to specify the values on the x- and y-axis? In
> my case I have a time series with one value per month. When i make a
> simple plot the x-axis shows digits 0,1,...,nbrofmonths . Is there away
> to make the plotfunction write Jan, Feb,...,Endmonth instead?

set(Axes_handle,'XLabel',{'Jan','Feb','Endmonth'})
 | 
Pages: 1
Prev: Quasi Monte Carlo Methods
Next: GA