필터 지우기
필터 지우기

How to orient a text arrow

조회 수: 19 (최근 30일)
Alex
Alex 2017년 1월 24일
댓글: Alex 2017년 1월 24일
Hello,
I am making a figure and added the x, y, z axes with labels for positve/negative x, y, and z using text(x,y,z,'leftarrow'). It looks good for the z-axis, but needs to be rotated for the xa and y axes. Is there a way to make an arrow that goes up and to the left (i.e. does something like 'leftuparrow' exist)?

채택된 답변

John Chilleri
John Chilleri 2017년 1월 24일
편집: John Chilleri 2017년 1월 24일
Hello,
You can specify the start and end of the arrow, as well as the type of arrow using an annotation.
It'll look something like:
x = [.2 .6];
y = [.1 .5];
annotation('textarrow',x,y)
which draws a text arrow from the point (.2*x axis range, .1*y axis range) to (.6*x axis range, .5*y axis range).
Hope this helps!
  댓글 수: 1
Alex
Alex 2017년 1월 24일
Perfect, thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (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