Path: news.mathworks.com!newsfeed-00.mathworks.com!oleane.net!oleane!news.ecp.fr!nuzba.szn.dk!pnx.dk!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:24:26 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <h4pipl$44t$1@news.eternal-september.org>
References: <h4p9q8$bcu$1@fred.mathworks.com> <h4patp$mu3$1@fred.mathworks.com> <h4pdki$e5b$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+V0kRpCTnPjfjnOsBsoSsePuoHcp5NweUNjzfVG4zEacRw4NBYnS6asdqG2gSDstEPdViLlhb2AKU7KdSRIwp8Y0D0KLUbaWJQzrutnmdJGBJc8TXKT1/1
X-Complaints-To: abuse@eternal-september.org
NNTP-Posting-Date: Wed, 29 Jul 2009 13:28:22 +0000 (UTC)
In-Reply-To: <h4pdki$e5b$1@fred.mathworks.com>
X-Auth-Sender: U2FsdGVkX18J+JjR+x72oQrEGfDI/HRNTlMLMIN/HBQ=
Cancel-Lock: sha1:7u1/LDa6Vq5jYtS0h3v81gah2iY=
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Xref: news.mathworks.com comp.soft-sys.matlab:559302


pietro wrote:
> "Wayne King" <wmkingty@gmail.com> wrote in message
> <h4patp$mu3$1@fred.mathworks.com>...
...
...
>> set(gca,'xticklabel',{'0.00' '0.05' '0.10' '0.15' '0.20'});
...
> i have too many and different graphs to do like this. Isn't there a
> function or a axis property?

Unfortunately, no.  A pet peeve of mine as well; there's no way to set a 
format string for the automagically-generated numeric ticklabel values 
and the only way to manually set them is as an array of strings.

Seems like they original coders would have at least had the sense to use 
a fixed-width format but they didn't and the annoying and ugly "feature" 
has never been fixed since the big bang day of handle graphics.... :(

Maybe put in the feature request again--I did 10 years or more ago but 
I've no longer a supported version.

--