Skip to content

Commit

Permalink
Fixed figure visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jbteves committed Feb 5, 2019
1 parent 1528e39 commit 13770e2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions meica_component_displayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function meica_component_displayer(tr, savedir)
if Motion
%%Making the motion plots, including framewise displacement

figure('visible', 'on', 'windowstyle', 'normal');
figure('visible','off', 'windowstyle', 'normal');
grid on; grid minor;
[fwd,~]=bramila_framewiseDisplacement(cfg); %calculate FD using script

Expand Down Expand Up @@ -156,7 +156,7 @@ function meica_component_displayer(tr, savedir)
fprintf('Making component plots.\n');
count = 0; %for displaying things every so often

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');

n_colors = 256;
colormaptype = 'parula';
Expand Down Expand Up @@ -240,7 +240,7 @@ function meica_component_displayer(tr, savedir)
%%
fprintf('\nCollecting Explained Variance...');

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');

BOLD_var = 0;
REJ_var = 0;
Expand Down Expand Up @@ -292,7 +292,7 @@ function meica_component_displayer(tr, savedir)
%%
fprintf('\nShowing Elbow of Kappa, with Rho...');

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
plot(imported_ctab(:,2))
hold on
plot(imported_ctab(:,3))
Expand All @@ -306,7 +306,7 @@ function meica_component_displayer(tr, savedir)
fprintf('\nScattering Kappa vs Rho ');

k_r = horzcat(imported_ctab(:,2),imported_ctab(:,3));
figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
scatter(k_r(:,1),k_r(:,2), imported_ctab(:,4)*100, color_table);
title('Kappa vs Rho');
ylabel('Rho');
Expand Down Expand Up @@ -346,7 +346,7 @@ function meica_component_displayer(tr, savedir)

tsnr_range = tsnr_max_MEDN*0.8;

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 tsnr_range])
title('TSNR of MEDN timeseries');
Expand Down Expand Up @@ -392,7 +392,7 @@ function meica_component_displayer(tr, savedir)

[sag_img, cor_img, hor_img] = three_cut_maker(tsnr_tsoc,num_cuts);

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 tsnr_range])

Expand Down Expand Up @@ -428,7 +428,7 @@ function meica_component_displayer(tr, savedir)

[sag_img, cor_img, hor_img] = three_cut_maker(tsnr_e2,num_cuts);

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 tsnr_range])
title('TSNR of Second Echo');
Expand Down Expand Up @@ -461,7 +461,7 @@ function meica_component_displayer(tr, savedir)

[sag_img, cor_img, hor_img] = three_cut_maker(tsnr_ratio,num_cuts);

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 5])
title('TSNR Ratio, MEDN vs TSOC timeseries');
Expand Down Expand Up @@ -498,7 +498,7 @@ function meica_component_displayer(tr, savedir)

[sag_img, cor_img, hor_img] = three_cut_maker(tsnr_ratio,num_cuts);

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 5])
title('TSNR of TSOC vs 2nd Echo');
Expand Down Expand Up @@ -531,7 +531,7 @@ function meica_component_displayer(tr, savedir)

[sag_img, cor_img, hor_img] = three_cut_maker(tsnr_ratio,num_cuts);

figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
subplot(8,5,1:10)
imshow(sag_img,[0 5])
title('TSNR of MEDN vs 2nd Echo');
Expand Down Expand Up @@ -560,7 +560,7 @@ function meica_component_displayer(tr, savedir)

%Creating a covariance matrix
fprintf('\nPlotting correlations');
figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
imagesc(corr_mat, [-1 1]);
title('Correlation of Motion and ICA comps.');
colorbar
Expand All @@ -570,7 +570,7 @@ function meica_component_displayer(tr, savedir)
%%
%Creating R^2 matrix
fprintf('\nPlotting correlations...squared\n');
figure('visible', 'on', 'windowstyle','normal');
figure('visible','off', 'windowstyle','normal');
imagesc((corr_mat.^2), [0 1]);
title('Correlation Coefficient of Motion and ICA comps.');
colorbar
Expand Down

0 comments on commit 13770e2

Please sign in to comment.