anyway to place the text of annotation at its right side?
27 views (last 30 days)
Show older comments
Hi:
is there anyway to place the text of annotation at its right side?
below is my code to generate the figure above:
for i=1:1:5
anno=annotation('textbox');
anno.Units='pixel';
anno.Position=anno_posi{i};
anno.BackgroundColor=anno_color{i};
anno.EdgeColor='w';
end
Thanks!
Yu
0 Comments
Answers (1)
Walter Roberson
on 19 Jan 2019
annotation textbox have a HorizontalAlignment property that defaults to 'left' but can be set to 'right' or 'center'.
There is also a VerticalAlignment property.
0 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!