Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Suppress Plot Unit Modifiers
Date: Sat, 29 Mar 2008 18:25:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <fsm1hv$dhm$1@fred.mathworks.com>
References: <fsluas$gr0$1@fred.mathworks.com> <fsm03g$pp6$1@canopus.cc.umanitoba.ca>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1206815103 13878 172.30.248.38 (29 Mar 2008 18:25:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Mar 2008 18:25:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:459841



in this example:

x=1:1e5;
y=x.^2;
plot(x,y)
set(gca,'XTickLabel',num2str(get(gca,'XTick').'))

the axis labels become the actual values (ie 90000, etc).

Is there a way to extract the multiplier so you can divide
by it and get just 9, etc. 

ie.

set(gca,'XTickLabel',num2str(get(gca,'XTick').'./MULTIPLIER))

Thanks,

David