Annotation ‘arrow’ head not aligned with arrow body
Using the annotation ‘arrow’ to plot a nonlinear vector field. I have computed the components and derivatives for the two states I selected and they are held in the variables X, Y, U and V. The body of the arrow is aligned with the U V directional vectors, but all arrowheads are pointing directly to the left but and anchored on the end of the arrow line. Below is the code I’m using to create the arrow object and the handle to it, and using a 2d loop to go through my matrices.
ah = annotation(‘arrow’,…
‘headStyle’,’cback2′,’HeadLength’,headLength,’HeadWidth’,headWidth);
set(ah,’parent’,gca);
set(ah,’position’,[X(ii,ij) Y(ii,ij) LineLength*U(ii,ij) LineLength*V(ii,ij)]);
<</matlabcentral/answers/uploaded_files/123959/annotation.png>>Using the annotation ‘arrow’ to plot a nonlinear vector field. I have computed the components and derivatives for the two states I selected and they are held in the variables X, Y, U and V. The body of the arrow is aligned with the U V directional vectors, but all arrowheads are pointing directly to the left but and anchored on the end of the arrow line. Below is the code I’m using to create the arrow object and the handle to it, and using a 2d loop to go through my matrices.
ah = annotation(‘arrow’,…
‘headStyle’,’cback2′,’HeadLength’,headLength,’HeadWidth’,headWidth);
set(ah,’parent’,gca);
set(ah,’position’,[X(ii,ij) Y(ii,ij) LineLength*U(ii,ij) LineLength*V(ii,ij)]);
<</matlabcentral/answers/uploaded_files/123959/annotation.png>> Using the annotation ‘arrow’ to plot a nonlinear vector field. I have computed the components and derivatives for the two states I selected and they are held in the variables X, Y, U and V. The body of the arrow is aligned with the U V directional vectors, but all arrowheads are pointing directly to the left but and anchored on the end of the arrow line. Below is the code I’m using to create the arrow object and the handle to it, and using a 2d loop to go through my matrices.
ah = annotation(‘arrow’,…
‘headStyle’,’cback2′,’HeadLength’,headLength,’HeadWidth’,headWidth);
set(ah,’parent’,gca);
set(ah,’position’,[X(ii,ij) Y(ii,ij) LineLength*U(ii,ij) LineLength*V(ii,ij)]);
<</matlabcentral/answers/uploaded_files/123959/annotation.png>> annotation, arrow, quiver MATLAB Answers — New Questions