changeset 672:bc1e4878d7e3

Corrected axes/datasets mappings. flys-artifacts/trunk@2094 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 09 Jun 2011 10:31:22 +0000
parents e0e39a0eb3fe
children b22f21b173a7
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionGenerator.java flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jun 08 19:11:18 2011 +0000
+++ b/flys-artifacts/ChangeLog	Thu Jun 09 10:31:22 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-09  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionGenerator.java,
+	  src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java:
+	  Map datasets to axes correctly.
+
 2011-06-08  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/Calculation4.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionGenerator.java	Wed Jun 08 19:11:18 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DischargeLongitudinalSectionGenerator.java	Thu Jun 09 10:31:22 2011 +0000
@@ -83,6 +83,13 @@
     }
 
 
+    protected void adjustAxes(XYPlot plot) {
+        super.adjustAxes(plot);
+
+        plot.mapDatasetToRangeAxis(2, 1);
+    }
+
+
 
     @Override
     public void doOut(Artifact artifact, String facet, Document attr) {
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Wed Jun 08 19:11:18 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Thu Jun 09 10:31:22 2011 +0000
@@ -146,8 +146,8 @@
 
         NumberAxis qAxis = new NumberAxis("Q [m\u00b3/s]");
 
-        plot.setRangeAxis(2, qAxis);
-        plot.mapDatasetToRangeAxis(1, 2);
+        plot.setRangeAxis(1, qAxis);
+        plot.mapDatasetToRangeAxis(1, 1);
     }
 
 

http://dive4elements.wald.intevation.org