reverse the y axis
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a step function plot in matlab. I want to reverse the y axis so that the initial value is at the top and also the x axis start from that point only.
댓글 수: 0
채택된 답변
Walter Roberson
2017년 6월 6일
set(gca, 'YDir', 'reverse')
댓글 수: 2
Walter Roberson
2017년 6월 6일
- You could adjust the axes CameraPosition and CameraTarget so that you are looking at the scene from "below" so that the axes is reversed from the normal
- You could create a hggroup() that you parent your stairs plot in, and then use hgtransform() to reverse top and bottom for it
- Instead of stairs(Y) you could stairs(SomeConstant - Y)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!