Mercurial > dive4elements > river
changeset 8697:527e0f4c28c1
(issue1670) There is no point in refilling half of the gaps.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 20 Apr 2015 15:03:02 +0200 |
parents | 5dea205ea3e7 |
children | 5c7b4f4a2e6c |
files | artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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); }