# HG changeset patch # User Ingo Weinzierl # Date 1350566093 -7200 # Node ID 0e5544c54be8abbbac8af0db78d514b68e1bfe02 # Parent f03774ed984e05611362fda7b15e1cbdeff8e0c7 Fixed flys/issue929. Made zero baseline in historical discharge curve charts visible. diff -r f03774ed984e -r 0e5544c54be8 flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java Thu Oct 18 14:40:37 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java Thu Oct 18 15:14:53 2012 +0200 @@ -1,5 +1,16 @@ package de.intevation.flys.exports; +import java.util.Date; + +import org.apache.log4j.Logger; +import org.jfree.chart.plot.XYPlot; +import org.jfree.data.general.SeriesException; +import org.jfree.data.time.Day; +import org.jfree.data.time.RegularTimePeriod; +import org.jfree.data.time.TimeSeries; +import org.jfree.data.time.TimeSeriesCollection; +import org.w3c.dom.Document; + import de.intevation.artifactdatabase.state.ArtifactAndFacet; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.artifacts.access.HistoricalDischargeAccess; @@ -10,16 +21,6 @@ import de.intevation.flys.jfree.StyledTimeSeries; import de.intevation.flys.utils.FLYSUtils; -import java.util.Date; - -import org.apache.log4j.Logger; -import org.jfree.data.general.SeriesException; -import org.jfree.data.time.Day; -import org.jfree.data.time.RegularTimePeriod; -import org.jfree.data.time.TimeSeries; -import org.jfree.data.time.TimeSeriesCollection; -import org.w3c.dom.Document; - /** * @author Ingo Weinzierl @@ -114,6 +115,12 @@ } } + @Override + protected void adjustPlot(XYPlot plot) { + super.adjustPlot(plot); + plot.setRangeZeroBaselineVisible(true); + } + @Override public void doOut(