📄 imagetitle.m
字号:
function imagetitle(tit)%IMAGETITLE Set the image title%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global H I Handleimg CB_imagemode Handlebar Handleimgax Handleframeax Handlefigglobal Fname FontName FontSize FontWeight Handlelineglobal FullFname imginfomicroscopes='NanoscopeII:?? NanoscopeIII:1652E NanoscopeIIIA:521d';if nargin==0 tit=strrep(FullFname,'\','\\');endvalue=[];if isempty(H) dat=''; mic=Inf;else dat=['Date: ' getparameter(H, 'Date',1)]; mic=getparameter(H, 'Serial number',1);endif isempty(mic) | (mic == inf) value = 'Unknown';else while ~isempty(microscopes) [m, microscopes]= strtok(microscopes); if findstr(m, mic) value=strtok(m, ':'); end endendif isempty(value) value=mic;endmic=['Microscope: ' value];if isempty(H) mod=''; itype=inf;else mod=['Mode: ' getparameter(H, 'Id',1)]; itype=getparameter(H, 'Image data',inf);end sep=' - ';if itype==inf, itype='';endif ~isempty(itype), itype=['Image data: ' itype];endimginfo=[mic, sep, mod, sep, itype sep dat];axes(Handleframeax);title(tit, 'FontName', FontName, 'FontWeight', FontWeight,... 'FontSize', FontSize, 'VerticalAlignment', 'bottom',... 'ButtonDownFcn', 'global imginfo;statusbar(imginfo);'); if isobj(Handleimgax) axes(Handleimgax);endreturn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -