File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
plotly/plotlyfig_aux/handlegraphics Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 89
89
% -------------------------------------------------------------------------%
90
90
91
91
% -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
94
94
for n = 1 : length(xdata ) % xdata and ydata had better be the same length... throw an exception if this isn't true?
95
95
% length of arrow
96
96
l = norm([0.1 * udata(n ), 0.1 * vdata(n )]);
100
100
101
101
% make barb with specified angular width and length prop. to arrow
102
102
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 )]; ...
104
104
[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 )];
106
106
]' ;
107
107
108
108
% affine matrix: rotate by arrow angle and translate to end of arrow
You can’t perform that action at this time.
0 commit comments