How do I reset axis ticks to normal after I modify them?
이전 댓글 표시
Suppose I have turned on datetick for a specific axis. Is there a way to turn off / reset the axis ticks to normal mode with 'set' commands?
채택된 답변
추가 답변 (2개)
Ivan van der Kroon
2011년 5월 31일
You can use
set(gca,'XTickLabel',xdate)
where xdate is your x-axis data. With datetick you're just changing the labels, but not the ticks themselves. Hope it helps!
댓글 수: 1
Oleg Komarov
2011년 5월 31일
set(gca,'xtickl',get(gca,'xtick'))
Martijn Steenwijk
2011년 5월 31일
0 개 추천
댓글 수: 1
Oleg Komarov
2011년 5월 31일
Solutions don't work says nothing about your problem (since both solutions do work if applied coherently) and it's not clear what's your problem.
To see what's the difference with your problem post the formatted code (editing your answer), otherwise no clue.
카테고리
도움말 센터 및 File Exchange에서 Grid Lines, Tick Values, and Labels에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!