如何通过 Matlab 轴显式显示这些轴表达式?

How to make these axis expressions explicit by Matlab axes?

差异条件:如何改变axis expressions to axes;图轴的隐式处理导致不稳定的条件等图表绘制在错误的数字中,...
函数axis是一个shorthand用于简化修改

The axis (not axes) function provides simplified access to commonly used properties that control the scaling and appearance of axes.

不稳定的代码

hFig2=figure(hFig2); 
hax2=axes(hFig2); 
plot(u); 
axis xy;
axis([0 (size(u,1)/1 - 0) min(u) max(u)]); 
axis off; 

用于稳定它但语法错误的伪代码

hFig2=figure(hFig2); 
hax2=axes(hFig2); 
plot(u, hFig2); 
axis('xy', hFig2);
axis([0 (size(u,1)/1 - 0) min(u) max(u)], hFig2); 
axis('off', hFig2); 

Matlab: 2016a
OS:Debian 8.5
硬件:华硕 Zenbook UX303UA
文档:axis, axes

axis 对特定 axes(或 axes 对象的数组)进行操作 而不是 一个 figure。如果您希望它稳定并将 axis 应用于 特定 axes,只需将 axes 句柄作为第一个输入传递给 axis

axis(hax2, 'xy')
axis(hax2, [0 (size(u,1)/1 - 0) min(u) max(u)])
axis(hax2, 'off')