forked from LimHyungTae/paper_quality_plot.matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot_boxplots.m
35 lines (32 loc) · 1.24 KB
/
plot_boxplots.m
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
%% 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');
xtickformat('%,4.4g');
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');
xtickformat('%,4.4g');
saveas(gcf,"imgs/boxplot2.png");
disp("Done (2/2)");