翻转轴刻度 [英] Flipping axis ticks

查看:93
本文介绍了翻转轴刻度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何操作我可以在MATLAB中编辑图像的轴以反转方向吗?

Possible Duplicate:
How do I edit the axes of an image in MATLAB to reverse the direction?

在MatLab中,我有一对轴,其中y轴从(0,0)开始并计数到(0,100),并且该x轴上的刻度线分别变为0,1,2,...,100 .可以翻转它使其达到100,99,...,0 以使原点为(0,100)吗?有任何想法吗?我知道这是有可能的,因为我已经看过这样的图形图形.

In MatLab I have a pair of axes where the y-axis starts from (0,0) and counts up to (0,100) with tick marks on this x-axis going 0,1,2,...,100. Can a flip it so it goes 100,99,...,0 so the origin would be (0,100)? Any ideas? I know it's possible because I've seen graph figures like this.

推荐答案

set(gca,'YDir','reverse');,然后再绘制图形.感谢gary comtois的链接-stackoverflow.com/questions/2865600/

set(gca,'YDir','reverse'); before you draw the graph. Thanks to gary comtois's link - stackoverflow.com/questions/2865600/

这篇关于翻转轴刻度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆