# HG changeset patch # User Felix Wolfsteller # Date 1376907751 -7200 # Node ID fb9babfa2aa3e21f1ba65a571f5a20bd1a91d42b # Parent affcedb306da8fac1861de136dd9b5dd026e5472 Minor refactoring. diff -r affcedb306da -r fb9babfa2aa3 artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java --- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java Mon Aug 19 11:56:17 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java Mon Aug 19 12:22:31 2013 +0200 @@ -72,13 +72,16 @@ logger.debug("doBedDifferenceHeightsOut()"); XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), attr); + double[][] points; if (idx == 0) { - StyledSeriesBuilder.addPoints(series, data.getHeights1Data(), false, GAP_TOLERANCE); + points = data.getHeights1Data(); } else { - StyledSeriesBuilder.addPoints(series, data.getHeights2Data(), false, GAP_TOLERANCE); + points = data.getHeights2Data(); } + StyledSeriesBuilder.addPoints(series, points, false, GAP_TOLERANCE); + generator.addAxisSeries(series, axidx, visible); } }