[Dive4elements-commits] [PATCH 09 of 10] FixWQCurveGenerator: For extreme_wq_curves, add marker to indicate where extrapolation starts
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 31 14:09:09 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351688976 -3600
# Node ID ff83ec9b4c0b7c961fd631d2ac9d2fb0b2752d63
# Parent 88064d351bccbe5bf9eb510fd7dfbd899725fe61
FixWQCurveGenerator: For extreme_wq_curves, add marker to indicate where extrapolation starts.
diff -r 88064d351bcc -r ff83ec9b4c0b flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Oct 31 14:08:38 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Oct 31 14:09:36 2012 +0100
@@ -262,6 +262,14 @@
0.0 , // start
maxQ); // end
+ // Add marker from where on its extrapolated.
+ double[] qs = curve.getQs();
+ double extrapolateFrom = qs[qs.length-1];
+
+ Marker m = new ValueMarker(extrapolateFrom);
+ m.setPaint(Color.black);
+ addDomainMarker(m);
+
addAxisSeries(series, 0, visible);
}
More information about the Dive4elements-commits
mailing list