Regarding increasing arrow head size

How to increase the arrowhead size in quiver plot
I tried using this command line
h2 = quiver(x,y,u,v)
set(h2,'AutoScale','on', 'AutoScaleFactor',0.8,'color','k','HeadLength',8,'HeadWidth',8,'linewidth',2)
But there is no change in arrow head size
I tried with 'MaxHeadSize' 0.2 also
Can anyone suggest on this.
Thanking you

1 件のコメント

VBBV
VBBV 2024 年 12 月 24 日
@CODER, which version of Matlab are you using ?
'HeadLength', 'HeadWidth' Properties are not present in quiver appearance properties.

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

回答 (1 件)

Harshit Gupta
Harshit Gupta 2022 年 7 月 12 日

0 投票

Hi, I understand that you want to increase the arrow head size, but it seems that changing the 'MaxHeadSize' property while the 'AutoScale' is 'on' doesn't work.
Set 'AutoScale' to 'off', and then change the 'MaxHeadSize' property and you will see the Arrow head size changing
Con: The plot might be hard to read due to AutoScale being off

3 件のコメント

CODER
CODER 2022 年 7 月 12 日
Sorry that didn't work out. I tried with MaxHeadSize=10 but no change
Harshit Gupta
Harshit Gupta 2022 年 7 月 12 日
It should have worked.
Did you try it like this?
h2 = quiver(x,y,u,v)
h2.AutoScale = 0
h2.MaxHeadSize = 10
CODER
CODER 2022 年 7 月 13 日
Addition of this has no change.

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

カテゴリ

ヘルプ センター および File ExchangeVector Fields についてさらに検索

質問済み:

2022 年 7 月 12 日

コメント済み:

2024 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by