This commit is contained in:
Horldsence
2026-09-13 10:27:09 +08:00
parent b810ec7777
commit 82311a47cc
52 changed files with 2563 additions and 1278 deletions
+11
View File
@@ -0,0 +1,11 @@
function fig_save(fig, S, name)
%FIG_SAVE 导出白底 PNG(300 dpi)并关闭图形窗口。
% 导出前关掉坐标轴工具条,避免交互按钮被画进图片。
axs = findall(fig, 'Type', 'axes');
for k = 1:numel(axs)
axs(k).Toolbar.Visible = 'off';
end
exportgraphics(fig, fullfile(S.out_dir, name), 'Resolution', S.dpi, ...
'BackgroundColor', 'white');
close(fig);
end