Change quiver arrow size and width in 2014

17 views (last 30 days)
Peng
Peng on 27 Nov 2014
Answered: Sean de Wolski on 3 Dec 2014
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.

Answers (3)

Peng
Peng on 28 Nov 2014
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 on 3 Dec 2014
Any help from the community? Thanks.

Sean de Wolski
Sean de Wolski on 3 Dec 2014
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: ''
>>

Categories

Find more on Vector Fields 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!