mk_plot_thicker.m

来自「麻省理工学院的人工智能工具箱,很珍贵,希望对大家有用!」· M 代码 · 共 34 行

M
34
字号
%% This function plots axis labels in nicer format for quality% printing on colour printers.%% Increase axis label sizes% Embolden plotted lines% Make on-plot text larger% Make axis labels italicized, larger, and moved away from axes%% % Paul Fieguth% November, 1998%function nice_plotfor hf=get(gcf,'Children')',  for hl=get(hf,'Children')',    if (strcmp(get(hl,'Type'),'line')),      set(hl,'LineWidth',2.0);    end;    if (strcmp(get(hl,'Type'),'text')),      set(hl,'HorizontalAlignment','center','VerticalAlignment','middle','FontName', 'Times','Fontsize', 16);    end;  end;end;set(gca,'Fontsize',12);set(get(gca,'XLabel'), 'Fontsize', 16, 'FontAngle', 'Italic', 'FontName', 'Times', 'VerticalAlignment','top');set(get(gca,'YLabel'), 'Fontsize', 16, 'FontAngle', 'Italic', 'FontName', 'Times', 'VerticalAlignment','bottom');set(get(gca,'Title'), 'Fontsize', 21, 'FontAngle', 'Italic', 'FontName', 'Times' );

⌨️ 快捷键说明

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