[PATCH] FixWQCurveGenerator: Make second axis initial extends match first one

Wald Commits scm-commit at wald.intevation.org
Tue Jul 2 14:53:41 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1372770184 -7200
# Node ID 2afe2fe125767f9e3e9fe6a6e400ccd3dbaa3901
# Parent  da0249ddcba7733f8bd01dc5485333d0d163d07d
FixWQCurveGenerator: Make second axis initial extends match first one.

diff -r da0249ddcba7 -r 2afe2fe12576 artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Tue Jul 02 09:57:55 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java	Tue Jul 02 15:03:04 2013 +0200
@@ -404,6 +404,14 @@
                 addAxisSeries(series, YAXIS.W.idx, visible);
             }
             else {
+                StyledXYSeries series2 = JFreeUtil.sampleFunction2D(
+                        func.getFunction(),
+                        doc,
+                        aaf.getFacetDescription(),
+                        500,   // number of samples
+                        0.0 ,  // start
+                        maxQ); // end
+                addAxisSeries(series2, YAXIS.W.idx, false);
                 // Use second axis at cm if at gauge.
                 for (int i = 0; i < series.getItemCount(); i++) {
                     series.updateByIndex(i, new Double(factor*(series.getY(i).doubleValue()-gaugeDatum)));


More information about the Dive4elements-commits mailing list