フィルターのクリア

anyway to place the text of annotation at its right side?

11 ビュー (過去 30 日間)
Yu Li
Yu Li 2019 年 1 月 18 日
回答済み: Walter Roberson 2019 年 1 月 19 日
Hi:
is there anyway to place the text of annotation at its right side?
Untitled.jpg
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

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 1 月 19 日
annotation textbox have a HorizontalAlignment property that defaults to 'left' but can be set to 'right' or 'center'.
There is also a VerticalAlignment property.

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by