From 75c0cd67574b7195f11e74d2f5f1c9fdb093a1f2 Mon Sep 17 00:00:00 2001
From: Lewin Probst <info@emirror.de>
Date: Wed, 11 Sep 2019 16:11:28 +0200
Subject: [PATCH] Every third gps date is now plotted in TOA plot.

---
 .../+edit/+timeOfArrival/plotSoundsourceToaFromGps.m       | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m b/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
index 1dd834b..a048e28 100644
--- a/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
+++ b/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
@@ -42,12 +42,17 @@ for o = 1:length(soundsources)
     gpsDates(selection) = NaN;
     predictedToas(selection) = NaN;
     clear selection;
-
+    
     scatter( ...
         artoaGui.figures.editTimeOfArrival.CurrentAxes, ...
         gpsDates, predictedToas, 20, ...
         'MarkerFaceColor', [1 1 1] ...
     );
+    
+    % use only every third gps date
+    gpsDates = gpsDates(1:3:end);
+    predictedToas = predictedToas(1:3:end);
+    
     text( ...
         artoaGui.figures.editTimeOfArrival.CurrentAxes, ...
         gpsDates, predictedToas, ['-', soundsources{o}], ...¬                                                                                        
-- 
GitLab