fix(matlab): compact plot layout, batch 1
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 37 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 33 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 32 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 38 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 34 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 31 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 33 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 36 KiB |
@@ -38,21 +38,12 @@ legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)},
|
|||||||
'Location', 'northwest', 'Box', 'off');
|
'Location', 'northwest', 'Box', 'off');
|
||||||
xlabel('training day'); ylabel(ylab);
|
xlabel('training day'); ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% by exportgraphics on a headless invisible figure, so draw the labels manually
|
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
||||||
% as rotated text objects (which always render).
|
% after the Position change.
|
||||||
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ...
|
set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.2 0.30 0.60 0.60], ...
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
drawnow;
|
xticklabels('auto')
|
||||||
yl = ylim(gca);
|
|
||||||
yb = yl(1) - 0.015 * (yl(2) - yl(1));
|
|
||||||
for k = 1:numel(xd)
|
|
||||||
text(xd(k), yb, num2str(xd(k)), 'Parent', gca, 'Rotation', 90, ...
|
|
||||||
'HorizontalAlignment', 'right', 'VerticalAlignment', 'middle', ...
|
|
||||||
'FontName', 'Arial', 'FontSize', 13, 'Clipping', 'off');
|
|
||||||
end
|
|
||||||
xlh = get(gca, 'XLabel'); % push the axis label below the vertical ticks
|
|
||||||
set(xlh, 'Units', 'normalized', 'Position', [0.5 -0.15 0]);
|
|
||||||
drawnow;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||