From: Andreas on
Hello,

can anyone tell me in what order and relative to what kind of a reference point text is rotated and aligned in matlab?
Say, I want to rotate the letter 'v' by a certain angle (phi) such that the bottom tip lies at the point (x,y). If I do
text(x,y,'v','Rotation',phi,...)
I found no satisfying combination of 'VerticalAlignment' and 'Horizontalalignment' that made it fit.

In other words, are the 'Alignment' tags with respect to before or after the rotation?

Many thanks,
Andreas
From: Shanmugam Kannappan on
"Andreas " <andreas.koch1(a)gmx-removethis.de> wrote in message <i3trbc$c7h$1(a)fred.mathworks.com>...
> Hello,
>
> can anyone tell me in what order and relative to what kind of a reference point text is rotated and aligned in matlab?
> Say, I want to rotate the letter 'v' by a certain angle (phi) such that the bottom tip lies at the point (x,y). If I do
> text(x,y,'v','Rotation',phi,...)
> I found no satisfying combination of 'VerticalAlignment' and 'Horizontalalignment' that made it fit.
>
> In other words, are the 'Alignment' tags with respect to before or after the rotation?
>
> Many thanks,
> Andreas

Hi,

One easy way is, use the command
%Click at the point in figure window where you want to put the text.
point = ginput(1);
text(point(1),point(2),'Hello Reader(\pi)','Rotation',30));

Hope it helps.

Shan!!!