changeset 666:eb45e05e5c5b

Set the second y axis to axis position 1 (starts at 0). flys-artifacts/trunk@2079 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 08 Jun 2011 12:35:44 +0000
parents d73b02526a6e
children 434146596838
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Jun 08 10:25:39 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Jun 08 12:35:44 2011 +0000
@@ -1,3 +1,9 @@
+2011-06-08  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java:
+	  The second y axis is set to position "1". It was set to "2" before, but
+	  in that case, there was no position "1".
+
 2011-06-08  Sascha L. Teichmann <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/exports/WaterlevelExporter.java,
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Wed Jun 08 10:25:39 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Wed Jun 08 12:35:44 2011 +0000
@@ -152,8 +152,8 @@
         NumberAxis qAxis = new NumberAxis(
             msg(I18N_2YAXIS_LABEL, I18N_2YAXIS_LABEL_DEFAULT));
 
-        plot.setRangeAxis(2, qAxis);
-        plot.mapDatasetToRangeAxis(1, 2);
+        plot.setRangeAxis(1, qAxis);
+        plot.mapDatasetToRangeAxis(1, 1);
 
         invertXAxis(plot.getDomainAxis());
     }

http://dive4elements.wald.intevation.org