Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: boxplot
Date: Tue, 18 Nov 2008 20:09:02 +0000 (UTC)
Organization: Lunds Universitet
Lines: 45
Message-ID: <gfv7cu$8f5$1@fred.mathworks.com>
References: <gfk36r$bca$1@fred.mathworks.com> <gfr9uh$6lr$1@fred.mathworks.com> <gfsaa1$g5q$1@fred.mathworks.com> <gfu5kt$fhe$1@fred.mathworks.com> <gfutjq$6q7$1@fred.mathworks.com> <gfv1qq$si6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227038942 8677 172.30.248.37 (18 Nov 2008 20:09:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 18 Nov 2008 20:09:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 5707
Xref: news.mathworks.com comp.soft-sys.matlab:501551


"Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi> wrote in message 

>>>> SNIP

> > And I wanted my labels to include TeX formatting (Greek letters as subscripts). 
> > Both to which the BOXPLOT "x-labels" were completely indifferent. Well, I 
> > digged deep enough to come up with this solution 
> > 
> > hA=subplot(2,2,1);
> > boxplot(c(L,1:n1))
> > set(hA,'FontSize',11,'YLim',[ymin 1],'Position',[0.08 0.62 0.39 0.32]);
> > hB=findobj(hA,'Type','hggroup');
> > hL=findobj(hB,'Type','text');
> > delete(hL)
> > set(gca,'XTick',[1:n1]);
> > set(gca,'XTickLabel',IXName');
> > hT=rotateticklabel(gca,-30);
> > for k=1:n1,
> >   set(hT(k),'FontSize',11,'Position',[k ymin*dd 0]);
> > end
> > 
> > The rather "interesting" but counterintuitive result of this tweak is 
> > that I get a plot that looks as I want, *but* the x-tick labels (i.e the 
> > hT text objects) are still children under the BOXPLOT hggroup. 
> > Bug or feature???? 
>>>>>>> SNIP 
 
> Why not simply modify the existing text objects? You have the handles in hL, 
> set(hL,'Rotation',30,'Interpreter','latex')
> 
> Ticklabels are special creatures and you are definitely not the only one wishing 
> they would some day support the full set of text object properties, or even 
> close...

Well, maybe I did something wrong in all the test and trials I had to experiment 
with. But when I tried that, the text object did not react. They just stayed either 
horizontal or vertical, and LaTeX was not accepted .... What I believe my code did was to create the text objects (with the right interpreter turned on and rotated 
to my taste) and as such they were then hooked up as label children to the 
BOXPLOT hggroup.

Lars