fix(matlab): horizontal x + padded y label, batch 2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 54 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 34 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 32 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 41 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
@@ -36,7 +36,7 @@ e2 = errorbar(xd, Mc, Sc, '-o', 'Color', blue, 'MarkerFaceColor', blue, 'LineWid
|
|||||||
hold off
|
hold off
|
||||||
legend([e1 e2], {sprintf('anodal, N = %d', na), sprintf('control, N = %d', nc)}, ...
|
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'); ylh = ylabel(ylab);
|
||||||
title(vname, 'Interpreter', 'none');
|
title(vname, 'Interpreter', 'none');
|
||||||
% Compact publication layout with a tight centred plot box and ticks pointing
|
% Compact publication layout with a tight centred plot box and ticks pointing
|
||||||
% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly
|
% 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], ...
|
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');
|
'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off', 'TickDir', 'out');
|
||||||
xticklabels('auto')
|
xticklabels('auto')
|
||||||
|
set(gca, 'XTickLabelRotation', 0); % keep x labels horizontal (no auto-rotate)
|
||||||
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
if strcmp(metric, 'count') % success count: y-ticks every 5 units
|
||||||
yl = ylim(gca);
|
yl = ylim(gca);
|
||||||
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
set(gca, 'YTick', floor(yl(1) / 5) * 5 : 5 : ceil(yl(2) / 5) * 5);
|
||||||
end
|
end
|
||||||
grid on
|
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;
|
drawnow;
|
||||||
exportgraphics(fig, outFile, 'Resolution', 150);
|
exportgraphics(fig, outFile, 'Resolution', 150);
|
||||||
close(fig);
|
close(fig);
|
||||||
|
|||||||