From cd24de173d3deb96bbe1669e42f0951e473b744c Mon Sep 17 00:00:00 2001 From: Experiments DB Dev Date: Fri, 24 Jul 2026 09:07:31 -0400 Subject: [PATCH] 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 --- analysis/matlab/variation_plot.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analysis/matlab/variation_plot.m b/analysis/matlab/variation_plot.m index 193a44b..8fb7f44 100644 --- a/analysis/matlab/variation_plot.m +++ b/analysis/matlab/variation_plot.m @@ -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);