⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lfigure.m

📁 实现地震勘探中
💻 M
字号:
function figure_handle=lfigure% Function creates a figure window in landscape mode with label and% time stamp. Also adds a "Save plot" menu button.%% Written by: E. R.: January 19, 2007% Last updated: February 1, 2008: change position of plot label and date%%            figure_handle=lfigure% OUTPUT% figure_handle  figure handle% UPDATE HISTORY%            August 31, 2007: Add "save plot" menu button%            November 25, 2007: delete figure handle if there is no output%                             argument and no figure label   global PARAMS4PROJECT S4M WFrun_presets_if_neededfigure_handle=figure;set(figure_handle,'Position',S4M.landscape,'PaperPosition',[0.8 0.8 10.0 6.35], ...        'PaperOrientation','landscape')axis_handle=gca;	% Save handle to current axesbgGray                  % Create gray backgound in figure_export_menu      % Add a save-button to the figure menuif ~isyes(S4M.figure_labels)  % Do not create labels in the lower left and                         % lower right of a figure   if nargout == 0      clear figure_handle   end   returnend%	Create new axes for labelsh=axes('Position',[0 0 1 1],'Visible','off');%	Create label for lower right-hand sideif ~isempty(S4M.plot_label)   txt=strrep(S4M.plot_label,'\_','#&%');     txt=strrep(txt,'_','\_');    txt=strrep(txt,'#&%','\_');else   txt='';endif ~isempty(PARAMS4PROJECT)  && isfield(PARAMS4PROJECT,'name')  &&  ~isempty(txt)   txt={strrep(PARAMS4PROJECT.name,'_','\_');txt};elseif ~isempty(WF) && ~isempty(txt)   txt={strrep(WF.name,'_','\_');txt};end%  	Add date/time stamp and plot labeltry   text(0.88,0.025,S4M.time,'FontSize',7);catch%    Do nothingendtry   text(0.02,0.025,txt,'FontSize',7);catch%    Do nothingend    %	Make axis handle invisible so that the axis cannot be used by accidentset(h,'HandleVisibility','off');axes(axis_handle);	% Make original axes the current axesset(axis_handle,'Position',[0.08,0.11,0.90,0.72],'FontName',S4M.font_name);   % Location of axes on figure (relative coordinates)if nargout == 0   clear figure_handleend

⌨️ 快捷键说明

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