diff --git a/analysis/matlab/variations/naive_boxa_d6_13/learning_curve.png b/analysis/matlab/variations/naive_boxa_d6_13/learning_curve.png index fffdbdb..3a92796 100644 Binary files a/analysis/matlab/variations/naive_boxa_d6_13/learning_curve.png and b/analysis/matlab/variations/naive_boxa_d6_13/learning_curve.png differ diff --git a/analysis/matlab/variations/naive_boxa_d6_13/learning_curve_rate.png b/analysis/matlab/variations/naive_boxa_d6_13/learning_curve_rate.png index 731d8c6..7ae07b8 100644 Binary files a/analysis/matlab/variations/naive_boxa_d6_13/learning_curve_rate.png and b/analysis/matlab/variations/naive_boxa_d6_13/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/naive_boxa_d6_13/plotcurve.m b/analysis/matlab/variations/naive_boxa_d6_13/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/naive_boxa_d6_13/plotcurve.m +++ b/analysis/matlab/variations/naive_boxa_d6_13/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/prev_f_full/learning_curve.png b/analysis/matlab/variations/prev_f_full/learning_curve.png index 7984fd6..4290ca3 100644 Binary files a/analysis/matlab/variations/prev_f_full/learning_curve.png and b/analysis/matlab/variations/prev_f_full/learning_curve.png differ diff --git a/analysis/matlab/variations/prev_f_full/learning_curve_rate.png b/analysis/matlab/variations/prev_f_full/learning_curve_rate.png index e6dfbb4..b804b05 100644 Binary files a/analysis/matlab/variations/prev_f_full/learning_curve_rate.png and b/analysis/matlab/variations/prev_f_full/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/prev_f_full/plotcurve.m b/analysis/matlab/variations/prev_f_full/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/prev_f_full/plotcurve.m +++ b/analysis/matlab/variations/prev_f_full/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/right_only_d0_10/learning_curve.png b/analysis/matlab/variations/right_only_d0_10/learning_curve.png index 9fc0f38..374fe1c 100644 Binary files a/analysis/matlab/variations/right_only_d0_10/learning_curve.png and b/analysis/matlab/variations/right_only_d0_10/learning_curve.png differ diff --git a/analysis/matlab/variations/right_only_d0_10/learning_curve_rate.png b/analysis/matlab/variations/right_only_d0_10/learning_curve_rate.png index 6d7fcee..730bcc5 100644 Binary files a/analysis/matlab/variations/right_only_d0_10/learning_curve_rate.png and b/analysis/matlab/variations/right_only_d0_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/right_only_d0_10/plotcurve.m b/analysis/matlab/variations/right_only_d0_10/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/right_only_d0_10/plotcurve.m +++ b/analysis/matlab/variations/right_only_d0_10/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/right_only_d0_13/learning_curve.png b/analysis/matlab/variations/right_only_d0_13/learning_curve.png index cad7731..c40f9a4 100644 Binary files a/analysis/matlab/variations/right_only_d0_13/learning_curve.png and b/analysis/matlab/variations/right_only_d0_13/learning_curve.png differ diff --git a/analysis/matlab/variations/right_only_d0_13/learning_curve_rate.png b/analysis/matlab/variations/right_only_d0_13/learning_curve_rate.png index cf29825..4c8c03d 100644 Binary files a/analysis/matlab/variations/right_only_d0_13/learning_curve_rate.png and b/analysis/matlab/variations/right_only_d0_13/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/right_only_d0_13/plotcurve.m b/analysis/matlab/variations/right_only_d0_13/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/right_only_d0_13/plotcurve.m +++ b/analysis/matlab/variations/right_only_d0_13/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/right_only_d0_5/learning_curve.png b/analysis/matlab/variations/right_only_d0_5/learning_curve.png index 9e95691..50a5ccb 100644 Binary files a/analysis/matlab/variations/right_only_d0_5/learning_curve.png and b/analysis/matlab/variations/right_only_d0_5/learning_curve.png differ diff --git a/analysis/matlab/variations/right_only_d0_5/learning_curve_rate.png b/analysis/matlab/variations/right_only_d0_5/learning_curve_rate.png index cd6772a..bf62109 100644 Binary files a/analysis/matlab/variations/right_only_d0_5/learning_curve_rate.png and b/analysis/matlab/variations/right_only_d0_5/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/right_only_d0_5/plotcurve.m b/analysis/matlab/variations/right_only_d0_5/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/right_only_d0_5/plotcurve.m +++ b/analysis/matlab/variations/right_only_d0_5/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/right_only_d6_10/learning_curve.png b/analysis/matlab/variations/right_only_d6_10/learning_curve.png index 4c55266..f8a812a 100644 Binary files a/analysis/matlab/variations/right_only_d6_10/learning_curve.png and b/analysis/matlab/variations/right_only_d6_10/learning_curve.png differ diff --git a/analysis/matlab/variations/right_only_d6_10/learning_curve_rate.png b/analysis/matlab/variations/right_only_d6_10/learning_curve_rate.png index 1f6b7dc..bb4a2d4 100644 Binary files a/analysis/matlab/variations/right_only_d6_10/learning_curve_rate.png and b/analysis/matlab/variations/right_only_d6_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/right_only_d6_10/plotcurve.m b/analysis/matlab/variations/right_only_d6_10/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/right_only_d6_10/plotcurve.m +++ b/analysis/matlab/variations/right_only_d6_10/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/right_only_d6_13/learning_curve.png b/analysis/matlab/variations/right_only_d6_13/learning_curve.png index bf1fc3b..106bcde 100644 Binary files a/analysis/matlab/variations/right_only_d6_13/learning_curve.png and b/analysis/matlab/variations/right_only_d6_13/learning_curve.png differ diff --git a/analysis/matlab/variations/right_only_d6_13/learning_curve_rate.png b/analysis/matlab/variations/right_only_d6_13/learning_curve_rate.png index 727ca84..2780a0f 100644 Binary files a/analysis/matlab/variations/right_only_d6_13/learning_curve_rate.png and b/analysis/matlab/variations/right_only_d6_13/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/right_only_d6_13/plotcurve.m b/analysis/matlab/variations/right_only_d6_13/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/right_only_d6_13/plotcurve.m +++ b/analysis/matlab/variations/right_only_d6_13/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); diff --git a/analysis/matlab/variations/unmerge_d0_10/learning_curve.png b/analysis/matlab/variations/unmerge_d0_10/learning_curve.png index 3e2cd18..b911efe 100644 Binary files a/analysis/matlab/variations/unmerge_d0_10/learning_curve.png and b/analysis/matlab/variations/unmerge_d0_10/learning_curve.png differ diff --git a/analysis/matlab/variations/unmerge_d0_10/learning_curve_rate.png b/analysis/matlab/variations/unmerge_d0_10/learning_curve_rate.png index c4c7f44..06418e8 100644 Binary files a/analysis/matlab/variations/unmerge_d0_10/learning_curve_rate.png and b/analysis/matlab/variations/unmerge_d0_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/unmerge_d0_10/plotcurve.m b/analysis/matlab/variations/unmerge_d0_10/plotcurve.m index 8399de2..6b28e51 100644 --- a/analysis/matlab/variations/unmerge_d0_10/plotcurve.m +++ b/analysis/matlab/variations/unmerge_d0_10/plotcurve.m @@ -38,21 +38,12 @@ 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'); -% Vertical x-axis tick labels. XTickLabelRotation / xtickangle are NOT honored -% by exportgraphics on a headless invisible figure, so draw the labels manually -% as rotated text objects (which always render). -set(gca, 'XTick', xd, 'XTickLabel', {}, 'Position', [0.13 0.20 0.80 0.70], ... - 'FontName', 'Arial', 'FontSize', 13, 'LineWidth', 1.5, 'Box', 'off'); -drawnow; -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]); +% Compact publication layout with a tight centred plot box and ticks pointing +% out. Setting XTickLabel {} then xticklabels('auto') resets the labels cleanly +% after the Position change. +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') drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig);