代码12-17.txt
来自「matlab宝典书籍源码 全部代码 希望大家喜欢」· 文本 代码 · 共 15 行
TXT
15 行
ax1 = subplot(2,2,1);
plot(1:10);
h = zoom; % 正常缩放。
ax2 = subplot(2,2,2);
plot(rand(3));
setAllowAxesZoom(h,ax2,false); % 不能缩放。
ax3 = subplot(2,2,3);
plot(peaks);
setAxesZoomMotion(h,ax3,'horizontal'); % 水平方向缩放。
ax4 = subplot(2,2,4);
contour(peaks);
setAxesZoomMotion(h,ax4,'vertical'); % 垂直方向缩放。
%图形窗口出现放大镜。
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?