Prev: Quasi Monte Carlo Methods
Next: GA
From: Eric Nilsson on 11 Jun 2010 10:29 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 11 Jun 2010 10:47 "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 11 Jun 2010 11:09 Thank you Wayne, it solved my problem. Sincerely, Adrian
From: Walter Roberson on 11 Jun 2010 12:29 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 |