fix(matlab): make learning-curve x-axis labels vertical

xtickangle(90) did not apply in headless export; set XTickLabelRotation=90
directly and drawnow before exportgraphics. Regenerated all learning_curve
.png / learning_curve_rate.png.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 09:07:31 -04:00
parent fd40b6fb54
commit cd24de173d
+3 -2
View File
@@ -38,8 +38,9 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
'Location', 'northwest', 'Box', 'off');
xlabel('training day'); ylabel(ylab);
title(vname, 'Interpreter', 'none');
set(gca, 'XTick', xd, 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
xtickangle(90); % vertical x-axis tick labels
set(gca, 'XTick', xd, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
drawnow; % force layout so the rotation is applied headless
exportgraphics(fig, outFile, 'Resolution', 150);
close(fig);
fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc);