From: Andreas on 11 Aug 2010 05:43 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 11 Aug 2010 06:06 "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!!!
|
Pages: 1 Prev: add watch to a variable or property Next: MATLAB SOURCE CODE FOR JPEG2000 |