Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Create a spaced vector for a log-plot
Date: Sun, 29 Apr 2012 09:19:28 -0500
Organization: Aioe.org NNTP Server
Lines: 22
Message-ID: <jnjiln$q5u$1@speranza.aioe.org>
References: <jnhdbf$nko$1@newscl01ah.mathworks.com> <jnhveo$4ve$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: FpDEUB12lHDbHrnV+3d+mw.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:766275

On 4/28/2012 6:45 PM, Roger Stafford wrote:
...

> Hermano, you should realize that the spacing you have requested is not
> in any sense a "log-spaced vector" because the ratio between successive
> interval lengths is not held constant. From .1 to 1 the intervals are
> all the same length and then suddenly the length is multiplied by 10.
> The intervals are then constant again until 100, at which time they are
> again multiplied by 10, etc. This irregularity could lead to a
> misinterpretation of displayed data.

I figured he was looking to label ticks specifically; if so when he 
switches/sets to log axes the spacing between the ticks will be set for 
him automagically.

Certainly the values aren't logrithmically spaced numerically, that's as 
OP noted what he gets if uses logspace() but they're "clean" for 
presentation purposes and if the data are spaced over a reasonable 
number of decades and plot size w/ font chosen appropriately, probably 
makes for a decent-looking plot.

--