how to move label from axis to the center
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to adjust the x-label {Jan, ,Dec} at the center of axis, how can I do it. Thanks
댓글 수: 1
Ameer Hamza
2020년 3월 6일
Can you mark on the image what is your expected outcome? Where do you want to move the x-labels?
답변 (1개)
Sindar
2020년 3월 6일
First, those are called the xtick labels. It turns out moving them is a pain, but I did find a potential solution here:
a=gca;
a.XRuler.TickLabelGapOffset = -45;
댓글 수: 2
Sindar
2020년 3월 9일
A better way to phrase your question is:
How do I move the xtick labels to midway between xticks?
My immediate response would be: don't. Doing this is confusing.
However, if you feel you must, there are many answers here on how to manually set the location and text of ticklabels using the text() command
참고 항목
카테고리
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!