diff --git a/analysis/matlab/variations/boxa_a2_d0_10/learning_curve.png b/analysis/matlab/variations/boxa_a2_d0_10/learning_curve.png index 2b5c991..6ee470e 100644 Binary files a/analysis/matlab/variations/boxa_a2_d0_10/learning_curve.png and b/analysis/matlab/variations/boxa_a2_d0_10/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_a2_d0_10/learning_curve_rate.png b/analysis/matlab/variations/boxa_a2_d0_10/learning_curve_rate.png index 5f7ea1e..e0668b6 100644 Binary files a/analysis/matlab/variations/boxa_a2_d0_10/learning_curve_rate.png and b/analysis/matlab/variations/boxa_a2_d0_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_a2_d0_10/plotcurve.m b/analysis/matlab/variations/boxa_a2_d0_10/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_a2_d0_10/plotcurve.m +++ b/analysis/matlab/variations/boxa_a2_d0_10/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/boxa_a2_d0_5/learning_curve.png b/analysis/matlab/variations/boxa_a2_d0_5/learning_curve.png index 34d34af..c65a575 100644 Binary files a/analysis/matlab/variations/boxa_a2_d0_5/learning_curve.png and b/analysis/matlab/variations/boxa_a2_d0_5/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_a2_d0_5/learning_curve_rate.png b/analysis/matlab/variations/boxa_a2_d0_5/learning_curve_rate.png index 876c2dd..e5f5e2d 100644 Binary files a/analysis/matlab/variations/boxa_a2_d0_5/learning_curve_rate.png and b/analysis/matlab/variations/boxa_a2_d0_5/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_a2_d0_5/plotcurve.m b/analysis/matlab/variations/boxa_a2_d0_5/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_a2_d0_5/plotcurve.m +++ b/analysis/matlab/variations/boxa_a2_d0_5/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/boxa_a2_d6_10/learning_curve.png b/analysis/matlab/variations/boxa_a2_d6_10/learning_curve.png index 4a60ff2..fbcbf0f 100644 Binary files a/analysis/matlab/variations/boxa_a2_d6_10/learning_curve.png and b/analysis/matlab/variations/boxa_a2_d6_10/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_a2_d6_10/learning_curve_rate.png b/analysis/matlab/variations/boxa_a2_d6_10/learning_curve_rate.png index 67f3ac5..9875208 100644 Binary files a/analysis/matlab/variations/boxa_a2_d6_10/learning_curve_rate.png and b/analysis/matlab/variations/boxa_a2_d6_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_a2_d6_10/plotcurve.m b/analysis/matlab/variations/boxa_a2_d6_10/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_a2_d6_10/plotcurve.m +++ b/analysis/matlab/variations/boxa_a2_d6_10/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/boxa_b2_d0_10/learning_curve.png b/analysis/matlab/variations/boxa_b2_d0_10/learning_curve.png index b58ea4e..6d9d09b 100644 Binary files a/analysis/matlab/variations/boxa_b2_d0_10/learning_curve.png and b/analysis/matlab/variations/boxa_b2_d0_10/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_b2_d0_10/learning_curve_rate.png b/analysis/matlab/variations/boxa_b2_d0_10/learning_curve_rate.png index 597e785..5cd0967 100644 Binary files a/analysis/matlab/variations/boxa_b2_d0_10/learning_curve_rate.png and b/analysis/matlab/variations/boxa_b2_d0_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_b2_d0_10/plotcurve.m b/analysis/matlab/variations/boxa_b2_d0_10/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_b2_d0_10/plotcurve.m +++ b/analysis/matlab/variations/boxa_b2_d0_10/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/boxa_b2_d0_5/learning_curve.png b/analysis/matlab/variations/boxa_b2_d0_5/learning_curve.png index 8843432..79b02b7 100644 Binary files a/analysis/matlab/variations/boxa_b2_d0_5/learning_curve.png and b/analysis/matlab/variations/boxa_b2_d0_5/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_b2_d0_5/learning_curve_rate.png b/analysis/matlab/variations/boxa_b2_d0_5/learning_curve_rate.png index e899e80..13b617f 100644 Binary files a/analysis/matlab/variations/boxa_b2_d0_5/learning_curve_rate.png and b/analysis/matlab/variations/boxa_b2_d0_5/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_b2_d0_5/plotcurve.m b/analysis/matlab/variations/boxa_b2_d0_5/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_b2_d0_5/plotcurve.m +++ b/analysis/matlab/variations/boxa_b2_d0_5/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/boxa_b2_d6_10/learning_curve.png b/analysis/matlab/variations/boxa_b2_d6_10/learning_curve.png index b263c69..52fb8f6 100644 Binary files a/analysis/matlab/variations/boxa_b2_d6_10/learning_curve.png and b/analysis/matlab/variations/boxa_b2_d6_10/learning_curve.png differ diff --git a/analysis/matlab/variations/boxa_b2_d6_10/learning_curve_rate.png b/analysis/matlab/variations/boxa_b2_d6_10/learning_curve_rate.png index de91998..01e8b5f 100644 Binary files a/analysis/matlab/variations/boxa_b2_d6_10/learning_curve_rate.png and b/analysis/matlab/variations/boxa_b2_d6_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/boxa_b2_d6_10/plotcurve.m b/analysis/matlab/variations/boxa_b2_d6_10/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/boxa_b2_d6_10/plotcurve.m +++ b/analysis/matlab/variations/boxa_b2_d6_10/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/matched_current_d0_3/learning_curve.png b/analysis/matlab/variations/matched_current_d0_3/learning_curve.png index 2ebcc47..05bd29f 100644 Binary files a/analysis/matlab/variations/matched_current_d0_3/learning_curve.png and b/analysis/matlab/variations/matched_current_d0_3/learning_curve.png differ diff --git a/analysis/matlab/variations/matched_current_d0_3/learning_curve_rate.png b/analysis/matlab/variations/matched_current_d0_3/learning_curve_rate.png index a960ff8..c32453e 100644 Binary files a/analysis/matlab/variations/matched_current_d0_3/learning_curve_rate.png and b/analysis/matlab/variations/matched_current_d0_3/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/matched_current_d0_3/plotcurve.m b/analysis/matlab/variations/matched_current_d0_3/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/matched_current_d0_3/plotcurve.m +++ b/analysis/matlab/variations/matched_current_d0_3/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc); diff --git a/analysis/matlab/variations/naive_a2_d0_10/learning_curve.png b/analysis/matlab/variations/naive_a2_d0_10/learning_curve.png index fc020c1..39c3e4d 100644 Binary files a/analysis/matlab/variations/naive_a2_d0_10/learning_curve.png and b/analysis/matlab/variations/naive_a2_d0_10/learning_curve.png differ diff --git a/analysis/matlab/variations/naive_a2_d0_10/learning_curve_rate.png b/analysis/matlab/variations/naive_a2_d0_10/learning_curve_rate.png index 973cc57..b9ee0e9 100644 Binary files a/analysis/matlab/variations/naive_a2_d0_10/learning_curve_rate.png and b/analysis/matlab/variations/naive_a2_d0_10/learning_curve_rate.png differ diff --git a/analysis/matlab/variations/naive_a2_d0_10/plotcurve.m b/analysis/matlab/variations/naive_a2_d0_10/plotcurve.m index 8fb7f44..8399de2 100644 --- a/analysis/matlab/variations/naive_a2_d0_10/plotcurve.m +++ b/analysis/matlab/variations/naive_a2_d0_10/plotcurve.m @@ -38,9 +38,22 @@ 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, 'XTickLabelRotation', 90, ... % vertical x-axis tick labels +% 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; % force layout so the rotation is applied headless +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]); +drawnow; exportgraphics(fig, outFile, 'Resolution', 150); close(fig); fprintf('%s: wrote %s (anodal N=%d, control N=%d)\n', vname, outFile, na, nc);