Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!grolier!usenet-fr.net!gegeweb.org!feeder.eternal-september.org!eternal-september.org!not-for-mail
From: dpb <none@non.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: all axis tick labels with the same digits
Date: Wed, 29 Jul 2009 08:53:38 -0500
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <h4pkgc$a8e$1@news.eternal-september.org>
References: <h4p9q8$bcu$1@fred.mathworks.com> <h4patp$mu3$1@fred.mathworks.com> <h4pdki$e5b$1@fred.mathworks.com> <h4pith$kl4$1@fred.mathworks.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX1+2SDVy40kqMLDIjGHoIDywKlIDM17hCCOmHkvPcJpAObQi5HR1hcof/GZrNPHw78uwOF4sgJA9i/VqYt0pwtmf/G4L3wVCJNA1vP3VDrYC59zH2e7gsFjXEYMQFYLG3/8=
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Wed, 29 Jul 2009 13:57:33 +0000 (UTC)
In-Reply-To: <h4pith$kl4$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX19VO7Ce6HO9/mNEFxihfB/vWMj9SaNn5RU=
Cancel-Lock: sha1:qgArH8TkEuSDch898hhF1Jhg4rs=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:559312


Steven Lord wrote:
...

> Since I'm guessing you're objecting to the manual way Wayne constructed the 
> tick label cell array, you can automate the formatting of the labels if the 
> format you want is possible using the formatting specification in SPRINTF:
> 
> x=[0 0.05 0.1 0.15 0.2];
> y=3*x;
> plot(x,y)
> set(gca, 'XTick', x, 'XTickLabel', sprintf('%0.2f|', x));

Which brings up the "pet peeve #27" noted above (I came back to post 
this additional response as above which I intended to do but got too 
wrapped up in the moment... :) ) --

Why can't the user have the ability to set that format or at least why 
doesn't presentation graphics have enough internal sense to make a 
neater-looking choice than the default?  Seems (and has always seemed) 
so obvious a minor little detail that would be so beneficial...

--