Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java @ 1931:7c52e9cb2a72
Allow more than two datasets and more flexibility with axes in plots. Based on patch by S. Teichmann.
flys-artifacts/trunk@3312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 24 Nov 2011 07:20:46 +0000 |
parents | 0463e1f80bfd |
children | 9e9cfc036a3f |
comparison
equal
deleted
inserted
replaced
1930:de0c2bbb27f9 | 1931:7c52e9cb2a72 |
---|---|
182 double w = wqdays.getW(i); | 182 double w = wqdays.getW(i); |
183 | 183 |
184 series.add((double) day, w); | 184 series.add((double) day, w); |
185 } | 185 } |
186 | 186 |
187 addFirstAxisSeries(series, visible); | 187 addAxisSeries(series, 0, visible); |
188 } | 188 } |
189 | 189 |
190 | 190 |
191 /** | 191 /** |
192 * Creates the series for a duration curve's Q facet. | 192 * Creates the series for a duration curve's Q facet. |
207 double q = wqdays.getQ(i); | 207 double q = wqdays.getQ(i); |
208 | 208 |
209 series.add((double) day, q); | 209 series.add((double) day, q); |
210 } | 210 } |
211 | 211 |
212 addSecondAxisSeries(series, visible); | 212 addAxisSeries(series, 1, visible); |
213 } | 213 } |
214 | 214 |
215 | 215 |
216 protected String getSeriesName(String river, String type) { | 216 protected String getSeriesName(String river, String type) { |
217 Object[] args = new Object[] { river }; | 217 Object[] args = new Object[] { river }; |
236 } | 236 } |
237 | 237 |
238 logger.warn("Could not determine chart curve type: " + type); | 238 logger.warn("Could not determine chart curve type: " + type); |
239 return type; | 239 return type; |
240 } | 240 } |
241 | |
242 // MainValue-Annotations should be visualized by a line that goes to the curve itself. | |
241 } | 243 } |
242 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 244 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |