mylinkaxes.m

来自「基于Matlab的地震数据处理显示和测井数据显示于处理的小程序」· M 代码 · 共 30 行

M
30
字号
function mylinkaxes(handles,option)% Depending on the Matlab version, the function uses "linkaxes" or % "linkedzoom" to link axes of a multi-plot figure to have a common zoom.%% Written by: E. R.: December 26, 2005% Last updated:%% INPUT% handles   handles of the axes to be linked% option    Possible values are:%           'x'   link x-axes%           'y'   link y-axes%           'xy'  link x-axes and y-axesglobal S4Mif S4M.matlab_version < 7   options={'x','y','xy','off'};   loptions={'onx','ony2','onxy','off'};   idx=find(ismember(options,option));   if isempty(idx)      error(['Option "',option,'" is not supported.'])   end   disable_zoom(gcf)   linkedzoom(gcf,loptions{idx});%   zoom offelse   linkaxes(handles,option)end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?