reverse the y axis
8 次查看(过去 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 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!