Skip to content
Snippets Groups Projects
Commit 86e3baa6 authored by leprob001's avatar leprob001
Browse files

Bugfix, the text of Soundsource SATFIX is now being filtered by NaN values to...

Bugfix, the text of Soundsource SATFIX is now being filtered by NaN values to always have at least one label.
parent 01510d0f
No related branches found
No related tags found
No related merge requests found
167
\ No newline at end of file
168
\ No newline at end of file
......@@ -104,11 +104,17 @@ for o = 1:length(fnames)
'MarkerEdgeColor', soundsourceColor ...
);
% filter NaN values for text display
tmpIndex = ~isnan(xData(2:end));
tmpNanFilteredXData = xData(2:end);
tmpNanFilteredYData = yData(2:end);
tmpNanFilteredXData = tmpNanFilteredXData(tmpIndex);
tmpNanFilteredYData = tmpNanFilteredYData(tmpIndex);
% use only every third gps date for text
artoaGui.editTimeOfArrival.textToaFromGps.(fnames{o}) = text( ...
artoaGui.editTimeOfArrival.axesToaFromGps, ...
[xData(1); xData(2:3:end)], ...
[yData(1); yData(2:3:end)], ...
[xData(1); tmpNanFilteredXData(1:3:end)], ...
[yData(1); tmpNanFilteredYData(1:3:end)], ...
[' ' fnames{o}], ...
'HorizontalAlignment', 'left', ...
'VerticalAlignment', 'top', ...
......@@ -117,6 +123,7 @@ for o = 1:length(fnames)
'FontWeight', 'demi', ...¬
'Color', soundsourceColor ...%[1 1 1] ...
);
clear tmpIndex tmpNanFilteredXData tmpNanFilteredYData;
end
hold(artoaGui.editTimeOfArrival.axesToaFromGps, 'off');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment