From 49c00c44a641332f3b05109ee97bbf8fa3fe45de Mon Sep 17 00:00:00 2001
From: Thomas Lambert <t.lambert@uliege.be>
Date: Thu, 26 Jan 2023 03:05:55 +0100
Subject: [PATCH] chore(plots): improve figures a bit for pres

---
 utils/plotsemiflappres.m | 12 ++++++++++--
 utils/plotwindonoff.m    |  2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/utils/plotsemiflappres.m b/utils/plotsemiflappres.m
index 4d23a13..2f57a00 100644
--- a/utils/plotsemiflappres.m
+++ b/utils/plotsemiflappres.m
@@ -243,6 +243,13 @@ function ResData = plotsemiflap(type)
 
             yDiff = diff(ax1.YLim);
             ax1.YLim = [ax1.YLim(1), ax1.YLim(2) + FACTOR * yDiff];
+            addtxt(ax1, '\bf Front', ax1.YLim(2));
+            addtxt(ax2, '\bf Aft', ax2.YLim(2));
+            ylabel(ax2, '\colclstar, \colcdstar');
+
+            %             legend(ax2, {"\cl", "\cd"}, 'Location','NorthEast')
+            %             legend("boxoff")
+
             pause(1);
             figdir = 'figures/results/';
             filename = sprintf('half%s-AllF-Dx%0.2f_V%0.1f_PRES.tex', ...
@@ -264,9 +271,9 @@ end
 
 function addtxt(ax, txt, ypos)
 
-    text(ax, -10, ypos, ...
+    text(ax, (40 - 13) / 2, ypos, ...
          txt, ...
-         'HorizontalAlignment', 'left', 'VerticalAlignment', 'top', 'FontWeight', 'bold');
+         'HorizontalAlignment', 'center', 'VerticalAlignment', 'top', 'FontWeight', 'bold');
 end
 
 function [inertiaF, inertiaM] = calcinertia(ResDataWO, type)
@@ -352,6 +359,7 @@ function setgca2(varargin)
     xlim([-13, 40]);
     xticks([-10:10:40]);
 
+    ylabel('\colcl, \colcd');
     xlabel('$\Lambda_\text{aft}$ [deg]');
 
     set(gca, ...
diff --git a/utils/plotwindonoff.m b/utils/plotwindonoff.m
index d602b4d..3b00bc9 100644
--- a/utils/plotwindonoff.m
+++ b/utils/plotwindonoff.m
@@ -303,7 +303,7 @@ end
 
 function setgcpres(varargin)
 
-    xlabel('t');
+    xlabel('t/T');
     ylabel('\fz');
 
     set(gca, ...
-- 
GitLab