# HG changeset patch # User Felix Wolfsteller # Date 1351691058 -3600 # Node ID 4938743a8899b0eafb243a37fc2b6fb777d7e39b # Parent d15012c99f40f8bc0dd57f8d82682fbc39d642eb FixWQCurveGenerator: Use suggested max q value of curve. diff -r d15012c99f40 -r 4938743a8899 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:43:16 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java Wed Oct 31 14:44:18 2012 +0100 @@ -251,9 +251,12 @@ logger.warn("doExtremeCurveOut: Facet does not contain Curve"); return; } - // TODO find max Q. - // TODO add marker where extrapolation starts. - double maxQ = 4000; + + double maxQ = curve.getSuggestedMaxQ(); + if (maxQ == Double.MAX_VALUE) { + maxQ = 8000; + } + StyledXYSeries series = JFreeUtil.sampleFunction2D( curve, doc,