Remove subaxis, use subplot instead

This commit is contained in:
Thomas Dehaeze 2019-07-05 11:50:06 +02:00
parent 04fa167f3d
commit 1ceb16895a
15 changed files with 14 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 KiB

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 231 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

View File

@ -276,7 +276,7 @@ We can also compare all the DOFs of one solid body (figure [[fig:frf_one_body_al
figure; figure;
ax1 = subaxis(2, 1, 1); ax1 = subplot(2, 1, 1);
hold on; hold on;
for solid_i = solids_i for solid_i = solids_i
plot(freqs, abs(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 'DisplayName', solid_names{solid_i}); plot(freqs, abs(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 'DisplayName', solid_names{solid_i});
@ -288,7 +288,7 @@ We can also compare all the DOFs of one solid body (figure [[fig:frf_one_body_al
legend('Location', 'northwest'); legend('Location', 'northwest');
title(sprintf('FRF between %s and %s', exc_names{exc_dir}, DOFs{dir_i})); title(sprintf('FRF between %s and %s', exc_names{exc_dir}, DOFs{dir_i}));
ax2 = subaxis(2, 1, 2); ax2 = subplot(2, 1, 2);
hold on; hold on;
for solid_i = solids_i for solid_i = solids_i
plot(freqs, mod(180+180/pi*phase(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 360)-180); plot(freqs, mod(180+180/pi*phase(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 360)-180);
@ -375,7 +375,7 @@ This normalized relative motion is shown on figure [[fig:relative_motion_compari
figure; figure;
for i = 2:6 for i = 2:6
subaxis(3, 2, i); subplot(3, 2, i);
hold on; hold on;
for dir_i = dirs_i for dir_i = dirs_i
H = (squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :))-squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))./(abs(squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :)))+abs(squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))); H = (squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :))-squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))./(abs(squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :)))+abs(squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :))));
@ -473,7 +473,7 @@ The FRF are matching well until 100Hz.
for i = 1:length(accs_i) for i = 1:length(accs_i)
acc_i = accs_i(i); acc_i = accs_i(i);
subaxis(2, 2, i); subplot(2, 2, i);
hold on; hold on;
for dir_i = 1:3 for dir_i = 1:3
@ -525,7 +525,7 @@ The FRF are matching well until 100Hz.
for i = 1:length(accs_i) for i = 1:length(accs_i)
acc_i = accs_i(i); acc_i = accs_i(i);
subaxis(2, 2, i); subplot(2, 2, i);
hold on; hold on;
for dir_i = 1:3 for dir_i = 1:3

View File

@ -75,7 +75,7 @@ exc_dir = 1;
figure; figure;
ax1 = subaxis(2, 1, 1); ax1 = subplot(2, 1, 1);
hold on; hold on;
for solid_i = solids_i for solid_i = solids_i
plot(freqs, abs(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 'DisplayName', solid_names{solid_i}); plot(freqs, abs(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 'DisplayName', solid_names{solid_i});
@ -87,7 +87,7 @@ ylabel('Amplitude');
legend('Location', 'northwest'); legend('Location', 'northwest');
title(sprintf('FRF between %s and %s', exc_names{exc_dir}, DOFs{dir_i})); title(sprintf('FRF between %s and %s', exc_names{exc_dir}, DOFs{dir_i}));
ax2 = subaxis(2, 1, 2); ax2 = subplot(2, 1, 2);
hold on; hold on;
for solid_i = solids_i for solid_i = solids_i
plot(freqs, mod(180+180/pi*phase(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 360)-180); plot(freqs, mod(180+180/pi*phase(squeeze(FRFs_O((solid_i-1)*6+dir_i, exc_dir, :))), 360)-180);
@ -160,7 +160,7 @@ exc_dir = 1;
figure; figure;
for i = 2:6 for i = 2:6
subaxis(3, 2, i); subplot(3, 2, i);
hold on; hold on;
for dir_i = dirs_i for dir_i = dirs_i
H = (squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :))-squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))./(abs(squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :)))+abs(squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))); H = (squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :))-squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :)))./(abs(squeeze(FRFs_O((i-1)*6+dir_i, exc_dir, :)))+abs(squeeze(FRFs_O((i-2)*6+dir_i, exc_dir, :))));
@ -244,7 +244,7 @@ figure;
for i = 1:length(accs_i) for i = 1:length(accs_i)
acc_i = accs_i(i); acc_i = accs_i(i);
subaxis(2, 2, i); subplot(2, 2, i);
hold on; hold on;
for dir_i = 1:3 for dir_i = 1:3
@ -292,7 +292,7 @@ figure;
for i = 1:length(accs_i) for i = 1:length(accs_i)
acc_i = accs_i(i); acc_i = accs_i(i);
subaxis(2, 2, i); subplot(2, 2, i);
hold on; hold on;
for dir_i = 1:3 for dir_i = 1:3

View File

@ -417,7 +417,7 @@ acc_i = [1 , 4 ;
figure; figure;
for i = 1:size(acc_i, 1) for i = 1:size(acc_i, 1)
subaxis(3, 3, i); subplot(3, 3, i);
hold on; hold on;
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :))))
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :))))
@ -459,7 +459,7 @@ acc_i = [1, 2;
figure; figure;
for i = 1:size(acc_i, 1) for i = 1:size(acc_i, 1)
subaxis(3, 3, i); subplot(3, 3, i);
hold on; hold on;
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :))))
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :))))

Binary file not shown.

View File

@ -812,7 +812,7 @@ Comparison of such measurements in the X direction is shown on figure [[fig:comp
figure; figure;
for i = 1:size(acc_i, 1) for i = 1:size(acc_i, 1)
subaxis(3, 3, i); subplot(3, 3, i);
hold on; hold on;
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :))))
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :))))
@ -858,7 +858,7 @@ Comparison of such measurements in the X direction is shown on figure [[fig:comp
figure; figure;
for i = 1:size(acc_i, 1) for i = 1:size(acc_i, 1)
subaxis(3, 3, i); subplot(3, 3, i);
hold on; hold on;
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 1)-1), exc_dir, :))))
plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :)))) plot(freqs, abs(squeeze(FRFs(meas_dir+3*(acc_i(i, 2)-1), exc_dir, :))))