Re: Position of title changes in each loop. Why?
- From: "Pekka " <pekka.nospam.kumpulainen@xxxxxxxxxxxxx>
- Date: Wed, 26 Mar 2008 11:43:01 +0000 (UTC)
"bluesaturn[at]kellnerweg.de" <bluesaturn@xxxxxxxxxxxxx>
wrote in message
<17992658.1206526473380.JavaMail.jakarta@xxxxxxxxxxxxxxxxxxxxxx>...
I have to plot several figures. For each loop the sameplotfunction is called. So I expect titleposition to be the
same for each graph after plotting.
I usetitleobject=title(titleinfo,'Interpreter','none','fontname','helvetica','fontsize',19,'fontweight','demi');
%adjust titletitleposition(2)+0.05 titleposition(3)]);
titleposition=get(titleobject,'Position');
set(titleobject,'Position',[titleposition(1)
figure. I don't understand why.
to shift the title each time a little.
But after six iterations the title is complete out of the
Also, the titleposition for each plot is not the samethan the previous one.
The position of the axes etc. are always the same.Despite this fact, the title is still moving upwards.
Has anybody an explanation for this strange behaviour?this was in vain.
I tried to clean the titleposition after changing but
Kind regards,
Gudrun
You are shifting the title slightly up in each iteration.
Of course it will eventially drift out of the figure.
I assume you are plotting on the same axis in each loop.
title function only updates the existing title object and
the position will remain what you have set on last
iteration, thus drifting up all the time.
You only need to shift it once. Other quick fixes would be
to delete the title object in each iteration:
delete(titleobject), then title will create a new one at
the default location. Or clf will do also.
.
- Follow-Ups:
- Re: Position of title changes in each loop. Why?
- From: bluesaturn[at]kellnerweg.de
- Re: Position of title changes in each loop. Why?
- References:
- Position of title changes in each loop. Why?
- From: bluesaturn[at]kellnerweg.de
- Position of title changes in each loop. Why?
- Prev by Date: NEW;Apple 13.3" MacBook Air - Intel Core 2 Duo 1.8GHz
- Next by Date: One figure repeatedly showing
- Previous by thread: Position of title changes in each loop. Why?
- Next by thread: Re: Position of title changes in each loop. Why?
- Index(es):
Relevant Pages
|