print_axes.m

来自「非常好的数字处理教程」· M 代码 · 共 30 行

M
30
字号
%function print_axes(axes)	figure;	a = axes;	figprops = get(axes);	rmfield(figprops, 'BeingDeleted');	figprops	%set(a,figprops);	%printdlg(figobject);    %orient landscape;    %[file,path,filterindex] = uiputfile({...    %    '*.png','PNG (*.png)';...    %    '*.jpg','JPG (*jpg)';...    %    '*.tif','TIFF (*.tif)';...    %    '*.eps','EPS (*.eps)'},...    %    'Save as');    %if (filterindex == 1)    %    print(gcf,'-dpng',[path file]);    %elseif (filterindex == 2)    %    print(gcf,'-djpeg',[path file]);    %elseif (filterindex == 3)    %    print(gcf,'-dtiff',[path file]);    %elseif (filterindex == 4)    %    print(gcf,'-depsc',[path file]);    %else    %    return;    %end

⌨️ 快捷键说明

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