Skip to content

Commit d09b15f

Browse files
author
埃博拉酱
committed
MATLAB.Graphics.GetYAxis:获取后还原状态
1 parent f7e3df7 commit d09b15f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

+MATLAB/+Graphics/GetYAxis.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
if isscalar(Ax.YAxis)
1414
YAxis=Ax.YAxis;
1515
else
16+
Location=Ax.YAxisLocation;
1617
yyaxis(Ax,'right');
1718
YAxis=Ax.YAxis(1+any(Ax.Children==GObject));
19+
yyaxis(Ax,Location);
1820
end
1921
end
2022

0 commit comments

Comments
 (0)