Files
mcm-26-b/scripts/matlab/fig_style.m
T
2026-09-13 10:27:09 +08:00

12 lines
656 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function S = fig_style()
%FIG_STYLE 出图环境:目录、导出参数与 MATLAB 默认配色。
% 除 fig_replay(回放画布,点运动图)外,各图一律使用 MATLAB 默认图形样式:
% 默认配色、默认字体、默认坐标轴与图例;本函数不设置任何自定义样式。
root = fileparts(fileparts(fileparts(mfilename('fullpath'))));
S.data_dir = fullfile(root, 'docs', 'figures', '.data');
S.out_dir = fullfile(root, 'docs', 'figures');
S.dpi = 300; % 论文插图导出分辨率
S.c = get(groot, 'defaultAxesColorOrder'); % 默认配色(7×3)
end