Arrow annotation rendering error

7 ビュー (過去 30 日間)
voxynn
voxynn 2021 年 4 月 19 日
編集済み: voxynn 2021 年 4 月 26 日
Hi,
When I use annotate to create an arrow the arrow appears asymmetric, with one end of the head rounded and the other straight. I've no idea what might be causing this and any help would be appreciated!
annotation('doublearrow',[0.2 0.2],[0.32 0.44],'Head1Style','vback2',...
'Head2Style','vback2','Head1Length',3,'Head2Length',3,...
'Head1Width',4,'Head2Width',4);.

回答 (1 件)

Monisha Nalluru
Monisha Nalluru 2021 年 4 月 22 日
The reason why you is see a thick straight line of color #a2142f instead of arrow is use of LineWidth property used in annotation.
In the above example the HeadLength and HeadWidth is less than the LineWidth which causing the arrow head to cover.
Try using LineWidth lessthan Headlength and HeadWidth.
From my understanding from above question, you want the arrow to be round, if so you can try to use HeadStyle as 'ellipse'
  1 件のコメント
voxynn
voxynn 2021 年 4 月 26 日
Apologies, I inserted the wrong code example in my question which has added confusion. The issue is with the BLACK line, not the red line. I have added more relevent code.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by