From c65c5ca081a32b576d27152d7d65aeabb7eaee1b Mon Sep 17 00:00:00 2001
From: Jacques Grelet <jacques.grelet@ird.fr>
Date: Thu, 2 Dec 2010 10:47:51 +0000
Subject: [PATCH] remove hardcoded fontsize

---
 tsg_util/plot_map.m | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tsg_util/plot_map.m b/tsg_util/plot_map.m
index 207351a..5472bb3 100644
--- a/tsg_util/plot_map.m
+++ b/tsg_util/plot_map.m
@@ -104,7 +104,8 @@ if ~isempty( ind )
 
   % Make a grid on the map with fancy box
   % -------------------------------------
-  m_grid('box', 'fancy', 'tickdir', 'in', 'TAG', 'TAG_PLOT4_LINE_GRID', 'Fontsize', 10);
+  m_grid('box', 'fancy', 'tickdir', 'in', 'TAG', 'TAG_PLOT4_LINE_GRID', ...
+    'Fontsize', tsg.fontSize);
 
   % Plot the ship track - Check if LAT-LON in deg-decimal
   % -----------------------------------------------------
@@ -145,7 +146,8 @@ if ~isempty( ind )
 
   % Write title
   % -----------
-  title( ['Cruise: ' tsg.file.name], 'fontsize', 14, 'fontweight', 'bold','interpreter','none');
+  title( ['Cruise: ' tsg.file.name], 'fontsize',tsg.fontSize +2, ...
+    'fontweight', 'bold','interpreter','none');
 
   % Set tag for each line
   % ---------------------
-- 
GitLab