2016-06-28 2 views
2

리더가 그래프를 읽을 때마다 머리를 회전시켜 y 축을 읽어야합니다. documentation을 읽고 인터넷 검색을 한 후에도 여전히 알아낼 수 없습니다. y 축 레이블을 y 축의 왼쪽이 아니라 y 축의 맨 위에 배치하려면 어떻게해야합니까?Matlab : 위 y 축 레이블 위치

예. enter image description here

enter image description here

답변

3

에 당신은 ylabel 객체를 생성 한 후 수동으로 속성을 조정할 수 있습니다 'Position''Rotation' :

enter image description here

:

plot(1:.1:10, (1:.1:10).^2); % example plot 
t = title('Title'); 
y = ylabel('ylabel'); 
vf = 1.125; % vertical factor. Adjust manually 
dy = .55; % horizontal offset. Adjust manually 
tpos = get(t, 'Position'); 
theight = tpos(2); 
ypos = get(y, 'Position'); 
set(y, 'Position', [ypos(1)+dy tpos(2)*1.02 ypos(3)], 'Rotation', 0) 

이 다음 그림을 제공을