YTickLabel positioning - labels between ticks

Hello, is there a way to position the yticklabels 90 degrees rotated between the yticks without changing the grid lines (see attached figure, labels should be 90 degrees rotated on the red line)?

답변 (1개)

dpb
dpb 2015년 8월 10일
편집: dpb 2015년 8월 10일

2 개 추천

Use text instead of tick labels for this...
hAx=axes;
set(hAx,'ylim',[0 3],'ytick',[0:3],'yticklabel',[])
text(-0.025*ones(3,1),[0.5:1:3].', ...
num2str([1:3].','Test %d'),'horizontalalign','right')

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

질문:

NW
2015년 8월 10일

편집:

dpb
2015년 8월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by