y axis values - change the display
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have values on y axis which ranges from 0 to 160000. The value for 80000 (for example) is displayed as 8 (*10^4)
How can I change so that the values would be displayed as non scientific number (i.e 80,000)
댓글 수: 0
답변 (1개)
Simon Chan
2021년 10월 24일
편집: Simon Chan
2021년 10월 24일
Modify the yticklabel as follows:
% plot something
ax = gca;
yticklabels(arrayfun(@(x) sprintf('%d',x),ax.YTick,'uni',0))
댓글 수: 3
Simon Chan
2021년 12월 5일
Sorry, I don't have such Matlab version and hence unable to give you an answer.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!