# HG changeset patch # User Tom Gottfried # Date 1429534982 -7200 # Node ID 527e0f4c28c109a888e62fa3706b153e3893ad36 # Parent 5dea205ea3e7dc2d649dfd2e616568660487d731 (issue1670) There is no point in refilling half of the gaps. diff -r 5dea205ea3e7 -r 527e0f4c28c1 artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java Mon Apr 20 12:58:52 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java Mon Apr 20 15:03:02 2015 +0200 @@ -49,7 +49,6 @@ * the NaNs lead to gaps in graph. * @param distance if two consecutive entries in points[0] are more * than distance apart, create a NaN value to skip in display. - * Still, create a line segment. */ public static void addPoints(XYSeries series, double[][] points, boolean skipNANs, double distance) { if (points == null || points.length <= 1) { @@ -64,11 +63,6 @@ } // Create gap if distance >= distance. if (i != 0 && Math.abs(xPoints[i-1] - xPoints[i]) >= distance) { - // Create at least a small segment for last point. - if (!Double.isNaN(yPoints[i-1])) { - series.add(xPoints[i-1]+0.99d*(distance)/2.d, yPoints[i-1], false); - } - if (!Double.isNaN(yPoints[i-1]) && !Double.isNaN(yPoints[i])) { series.add((xPoints[i-1]+xPoints[i])/2.d, Double.NaN, false); }