www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第12章/代码12-17.txt
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'); % 垂直方向缩放。 %图形窗口出现放大镜。