fix(matlab): horizontal x + padded y label, batch 1

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Experiments DB Dev
2026-07-24 10:05:21 -04:00
parent eafc2566f8
commit fa16b6116f
24 changed files with 48 additions and 8 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
hold off
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
'Location', 'northwest', 'Box', 'off');
xlabel('training day'); ylabel(ylab);
xlabel('training day'); ylh = ylabel(ylab);
title(vname, 'Interpreter', 'none');
% Compact publication layout with a tight centred plot box and ticks pointing
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
@@ -44,11 +44,16 @@ title(vname, 'Interpreter', 'none');
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
xticklabels('auto')
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
if strcmp(metric, 'count') % success count: y-ticks every 5 units
yl = ylim(gca);
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
end
grid on
% Add breathing room between the y-axis label and the tick numbers.
set(ylh, 'Units', 'normalized');
yp = get(ylh, 'Position');
set(ylh, 'Position', [yp(1) - 0.06, yp(2), 0]);
drawnow;
exportgraphics(fig, outFile, 'Resolution', 150);
close(fig);