[Greater-commits] r347 - trunk/GREAT-ER/Greater/Modules
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Jul 1 14:47:43 CEST 2011
Author: aheinecke
Date: 2011-07-01 14:47:43 +0200 (Fri, 01 Jul 2011)
New Revision: 347
Modified:
trunk/GREAT-ER/Greater/Modules/plot.py
Log:
Use decimal x/y format by default as it used to be in the old reportlab versions
now it is %s which is way to much precision for us
Modified: trunk/GREAT-ER/Greater/Modules/plot.py
===================================================================
--- trunk/GREAT-ER/Greater/Modules/plot.py 2011-07-01 11:03:44 UTC (rev 346)
+++ trunk/GREAT-ER/Greater/Modules/plot.py 2011-07-01 12:47:43 UTC (rev 347)
@@ -81,9 +81,11 @@
lp.xValueAxis.valueMin = 0
lp.xValueAxis.valueMax = maxL
if maxL > 10:
- lp.xValueAxis.valueStep = maxL/10
+ lp.xValueAxis.valueStep = (maxL/10)
else:
lp.xValueAxis.valueStep = 1
+ lp.xValueAxis.labelTextFormat = '%d'
+ lp.yValueAxis.labelTextFormat = '%d'
lp.yValueAxis.valueMin = minC
lp.yValueAxis.valueMax = maxC
More information about the Greater-commits
mailing list