Skip to content
Snippets Groups Projects
Commit 291f45c8 authored by Tamas Borbath's avatar Tamas Borbath
Browse files

doublePointedArrowInside.m is a new function used for plotBaselines_and_fitted_spectra

parent ca8a1ac9
No related branches found
No related tags found
No related merge requests found
function doublePointedArrowInside(xa,yUpper,yLower, arrowsColor)
set(gcf,'Units','normalized');
yaDown = [yUpper+1e-8 yUpper];
yaLine = [yLower yUpper];
yaUp = [yLower-1e-8 yLower];
[xaf,yafLine] = axescoord2figurecoord(xa,yaLine);
line = annotation('line',xaf,yafLine);
[xaf,yafDown] = axescoord2figurecoord(xa,yaDown);
arDown = annotation('arrow',xaf,yafDown);
[xaf,yafUp] = axescoord2figurecoord(xa,yaUp);
arUp = annotation('arrow',xaf,yafUp);
%styling
line.Color = arrowsColor;
arDown.HeadStyle = 'vback2';
arDown.HeadLength = 5;
arDown.HeadWidth = 7;
arDown.Color = arrowsColor;
arUp.HeadStyle = 'vback2';
arUp.HeadLength = 5;
arUp.HeadWidth = 7;
arUp.Color = arrowsColor;
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment