changeset 1951:2c9bf9aede64

Fix first axis (do not include zero). flys-artifacts/trunk@3347 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 05 Dec 2011 08:47:49 +0000 (2011-12-05)
parents 37a7b3841565
children 8dafae465c91
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Dec 02 11:01:11 2011 +0000
+++ b/flys-artifacts/ChangeLog	Mon Dec 05 08:47:49 2011 +0000
@@ -1,3 +1,8 @@
+2011-12-05	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java:
+	  Do not include zero on first axis.
+
 2011-12-02	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Fri Dec 02 11:01:11 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java	Mon Dec 05 08:47:49 2011 +0000
@@ -94,6 +94,9 @@
             //label = msg(get2YAxisLabelKey(), get2YAxisDefaultLabel());
         }
         NumberAxis axis = new NumberAxis(label);
+        if (index == YAXIS.W.idx) {
+            axis.setAutoRangeIncludesZero(false);
+        }
         axis.setLabelFont(labelFont);
         return axis;
     }

http://dive4elements.wald.intevation.org