Change the axis label unit length
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone, I want to know how I can change the unit value of an axis, for example, I want the xaxis label to show values with a step of 1. In the standard form, it changes when you change the size of the plot, but I do not want that. Can anyone help me? Thank you
댓글 수: 0
채택된 답변
Marc Jakobi
2016년 10월 23일
You can set the XTick and XTickLabel properties.
ax = gca;
ax.XTick = [...]; %vector containing ticks you would like (spread evenly across axis)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!