Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Specify interval for axis?
Date: Thu, 15 May 2008 22:36:11 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <g0idsr$op3$1@canopus.cc.umanitoba.ca>
References: <g0ic75$mqu$1@news.net.uni-c.dk>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1210890971 25379 192.70.172.160 (15 May 2008 22:36:11 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Thu, 15 May 2008 22:36:11 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:468730


In article <g0ic75$mqu$1@news.net.uni-c.dk>, saneman <asd@ad.com> wrote:
>Is it possible to specify the interval to list numbers on the axis? I 
>currently use:

>axis([0 100 0 100])

>But instead of only labeling 0, 10, 20,...,100 etc. I would like 0, 5, 10, 
>15, 20, ...,100 on the axis instead.

No, there is not way to set an interval. You can, though, specify
the exact ticks you want, by setting the axes XTick or YTick to the
values at which you wish a tick to be placed. For example,

set(gca,'XTick', 0:5:100);
-- 
  "Prevention is the daughter of intelligence."
                                              -- Sir Walter Raleigh