+
+
+ // Get plot length (ignore trailing NaN's)
+ int typeCount = filled.getTypeCount();
+ int dataLength = 0;
+ for (int i=0; i<typeCount; i++) {
+ FlightDataBranch.Type type = filled.getType(i);
+ List<Double> y = branch.get(type);
+
+ for (int j = dataLength; j < y.size(); j++) {
+ if (!Double.isNaN(y.get(j)) && !Double.isInfinite(y.get(j)))
+ dataLength = j;
+ }
+ }
+ dataLength = Math.min(dataLength, x.size());
+