필터 지우기
필터 지우기

How do I keep the vertical arrow connected in a text arrow annotation?

조회 수: 4 (최근 30일)
Eric G.
Eric G. 2015년 1월 26일
When trying to add an text arrow to a plot I can get the text arrow to show up on the plot but the line is disconnected from the arrowhead.
x=1:.1:10;
y1 = sin(x*pi)/10;
figure
plot(x,y1)
tb = annotation('textarrow','String','Stim');
annoAx = gca;
tb.Parent = annoAx;
yRange = annoAx.YLim(2) - annoAx.YLim(1);
tb.Position = [5, .09, 0, -.04];
The problem seems to go away if the arrow is not perfectly vertical or if the y values are larger. Any suggestions?
PS I am using MATLAB R2014b

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by