翻转轴刻度 [英] Flipping axis ticks
问题描述
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屋!