-
Notifications
You must be signed in to change notification settings - Fork 14
/
plot_boxplots.asv
37 lines (31 loc) · 1.25 KB
/
plot_boxplots.asv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%% Boxplot example
clc
close all;
clear all;
%% Calculate AOA errors
figure()
set(gca,'LooseInset', max(get(gca,'TightInset'), 0.02))
set(groot, 'defaultAxesTickLabelInterpreter','latex');
disp("Loading boxplot data... (1/2)");
load('materials/aoa_error.mat', 'aoa_errors_list', 'xlabels');
mu = 5; % mu takes outlier (red cross) into account
boxplot(aoa_errors_list, xlabels, 'Whisker', mu);
title('Error of Angle of Attack (AOA) based on sequence length', "Interpreter", 'latex');
xlabel('Sequence Length', "Interpreter", 'latex');
ylabel('Error [rad]', "Interpreter", 'latex');
set(groot, 'defaultAxesTickLabelInterpreter','latex');
saveas(gcf,"imgs/boxplot1.png");
disp("Done (1/2)");
%% Calculate SSA errors
figure()
set(gca,'LooseInset', max(get(gca,'TightInset'), 0.02))
set(groot, 'defaultAxesTickLabelInterpreter','latex');
disp("Loading boxplot data... (2/2)");
load('materials/ssa_error.mat', 'ssa_errors_list', 'xlabels');
mu = 9; % mu takes outlier (red cross) into account
boxplot(ssa_errors_list, xlabels, 'Whisker', mu);
title('Error of Sideslip Angle (SSA) based on sequence length', "Interpreter", 'latex');
xlabel('Sequence Length', "Interpreter", 'latex');
ylabel('Error [rad]', "Interpreter", 'latex');
saveas(gcf,"imgs/boxplot2.png");
disp("Done (2/2)");