How do I rotate the X and Y axes of my histogram in MATLAB (R2011b)?
조회 수: 51 (최근 30일)
이전 댓글 표시
I have a histogram for which I want to rotate the X and Y axes by 90 degrees. How can I achieve that?
채택된 답변
MathWorks Support Team
2013년 6월 20일
To rotate the axes, you would need to get their handle and modify the 'View' option. Here is an example to illustrate this:
>> N = 1000;
>> binCount = 100;
>> figure
>> hist(gca,rand(N,1),binCount);
>> set(gca,'view',[90 -90]
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!