【发布时间】:2014-04-26 18:36:08
【问题描述】:
我的代码:
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'.
【问题讨论】:
-
您可以在绘图命令中使用“flipud”或“fliplr”。