Skip to content

Commit 9a26c0f

Browse files
committed
Modified arrowhead size
1 parent 5aaf665 commit 9a26c0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plotly/plotlyfig_aux/handlegraphics/updateQuiver.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
%-------------------------------------------------------------------------%
9090

9191
%-quiver barbs-%
92-
max_head_size = 0.15; % 'MaxHeadSize' scalar, matlab clips to 0.2
93-
head_width = deg2rad(15); % barb width, not supported by matlab
92+
max_head_size = 0.3; % 'MaxHeadSize' scalar, matlab clips to 0.2
93+
head_width = deg2rad(17); % barb width, not supported by matlab
9494
for n = 1:length(xdata) % xdata and ydata had better be the same length... throw an exception if this isn't true?
9595
% length of arrow
9696
l = norm([0.1*udata(n), 0.1*vdata(n)]);
@@ -100,9 +100,9 @@
100100

101101
% make barb with specified angular width and length prop. to arrow
102102
barb = [...
103-
[-0.5*l*cos(head_width), 0.5*l*sin(head_width)]; ...
103+
[-max_head_size*l*cos(head_width), max_head_size*l*sin(head_width)]; ...
104104
[0, 0]; ...
105-
[-0.5*l*cos(head_width), -0.5*l*sin(head_width)];
105+
[-max_head_size*l*cos(head_width), -max_head_size*l*sin(head_width)];
106106
]';
107107

108108
% affine matrix: rotate by arrow angle and translate to end of arrow

0 commit comments

Comments
 (0)