Change quiver arrow size and width in 2014

5 ビュー (過去 30 日間)
Peng
Peng 2014 年 11 月 27 日
回答済み: Sean de Wolski 2014 年 12 月 3 日
In quiver.m in 2014, there are parameters for controlling the quiver arrow size and width as:
alpha = 0.33; % Size of arrow head relative to the length of the vector
beta = 0.3; % Width of the base of the arrow head relative to the length
however changing them does not make a difference. How to change quiver arrow size and width in 2014? Thanks.

回答 (3 件)

Peng
Peng 2014 年 11 月 28 日
In 2013, there is a way to change the alpha and beta by changing the file refresh.m located in folder \toolbox\matlab\specgraph\@specgraph\@quivergroup\@quivergroup. I'm looking for a way to achieve the same in 2014. Thanks.

Peng
Peng 2014 年 12 月 3 日
Any help from the community? Thanks.

Sean de Wolski
Sean de Wolski 2014 年 12 月 3 日
I don't know exactly what you want, but perhaps try changing the AutoScaleFactor or the MaxHeadSize LineWidth etc. properties of the quiver object.
q = quiver(rand(10,1),rand(10,1),rand(10,1),rand(10,1))
q =
Quiver with properties:
Color: [0 0.4470 0.7410]
LineStyle: '-'
LineWidth: 0.5000
XData: [10x1 double]
YData: [10x1 double]
ZData: []
UData: [10x1 double]
VData: [10x1 double]
WData: []
Show all properties
AlignVertexCenters: 'off'
Annotation: [1x1 matlab.graphics.eventdata.Annotation]
AutoScale: 'on'
AutoScaleFactor: 0.9000
BeingDeleted: 'off'
BusyAction: 'queue'
ButtonDownFcn: ''
Children: []
Clipping: 'on'
Color: [0 0.4470 0.7410]
CreateFcn: ''
DeleteFcn: ''
DisplayName: ''
HandleVisibility: 'on'
HitTest: 'on'
Interruptible: 'on'
LineStyle: '-'
LineWidth: 0.5000
Marker: 'none'
MarkerEdgeColor: 'auto'
MarkerFaceColor: 'none'
MarkerSize: 6
MaxHeadSize: 0.2000
Parent: [1x1 Axes]
PickableParts: 'visible'
Selected: 'off'
SelectionHighlight: 'on'
ShowArrowHead: 'on'
Tag: ''
Type: 'quiver'
UData: [10x1 double]
UDataSource: ''
UIContextMenu: []
UserData: []
VData: [10x1 double]
VDataSource: ''
Visible: 'on'
WData: []
WDataSource: ''
XData: [10x1 double]
XDataMode: 'manual'
XDataSource: ''
YData: [10x1 double]
YDataMode: 'manual'
YDataSource: ''
ZData: []
ZDataSource: ''
>>

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by