📄 saveplot.m
字号:
function saveplot(figh, savepath, plottarget)
% Saves figure FIGH to SAVEPATH according to PLOTTARGET specification
% SAVEPLOT(FIGH, SAVEPATH, PLOTTARGET)
if isempty(figh), figh = gcf; end;
switch plottarget,
case 'latex',
saveas(figh, [savepath '.fig'], 'fig');
saveas(figh, [savepath '.eps'], 'psc2');
case 'beamer',
saveas(figh, [savepath '.fig'], 'fig');
% override resolution for PNGs
print(['-f' num2str(figh)], '-dpng', '-r300', [savepath '.png']);
% saveas(figh, [savepath '.png'], 'png');
case {'screen', ''}, % do nothing
otherwise, % do nothing
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -