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: NNTP Server
Lines: 22
Message-ID: <jnjiln$q5u$>
References: <jnhdbf$nko$> <jnhveo$4ve$>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20120216 Thunderbird/3.1.19
X-Notice: Filtered by postfilter v. 0.8.2
Xref: 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.