2014-04-26 29 views
2

我的代码的一个y轴:逆转的plotyy

figure 
[ax, h1, h2] = plotyy(x1,y1,x2,y2,'semilogy','semilogy'); 

现在我想扭转所述第二y轴的方向。我尝试添加:

set(h2,'YDir','reverse'); 

但是,这将导致以下错误:

The name 'YDir' is not an accessible property for an instance of class 'lineseries'. 
+0

您可以使用在你的剧情指令中有'flipud'或'fliplr'。 – oligilo

回答

3

Ydir是一个轴的可写属性,而不是图形对象:

set(ax(2),'YDir','reverse')