diff options
Diffstat (limited to 'wqflask/utility/Plot.py')
-rw-r--r-- | wqflask/utility/Plot.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/wqflask/utility/Plot.py b/wqflask/utility/Plot.py index 063de387..d60e2bb2 100644 --- a/wqflask/utility/Plot.py +++ b/wqflask/utility/Plot.py @@ -29,8 +29,6 @@ from __future__ import print_function import piddle as pid from pprint import pformat as pf -print("Lysol") - from math import * import random import sys, os @@ -38,14 +36,15 @@ from numarray import linear_algebra as la from numarray import ones, array, dot, swapaxes import reaper -sys.path.append("..") -print(sys.path) +# sys.path.append("..") Never in a running webserver from basicStatistics import corestats import svg import webqtlUtil from base import webqtlConfig +import utility.logger +logger = utility.logger.getLogger(__name__ ) def cformat(d, rank=0): 'custom string format' @@ -297,10 +296,10 @@ def find_outliers(vals): """ - print("xerxes vals is:", pf(vals)) + logger.debug("xerxes vals is:", pf(vals)) if vals: - #print("vals is:", pf(vals)) + #logger.debug("vals is:", pf(vals)) stats = corestats.Stats(vals) low_hinge = stats.percentile(25) up_hinge = stats.percentile(75) @@ -313,7 +312,7 @@ def find_outliers(vals): upper_bound = None lower_bound = None - print(pf(locals())) + logger.debug(pf(locals())) return upper_bound, lower_bound @@ -436,7 +435,7 @@ def plotBoxPlot(canvas, data, offset= (40, 40, 40, 40), XLabel="Category", YLabe canvas.drawCross(XCoord, plotHeight + yTopOffset - (catMean-Yll)*plotHeight/(Yur - Yll), \ color=pid.blue,size=3) - #print (catMean, catMedian, cat25per, cat75per) + #print(catMean, catMedian, cat25per, cat75per) pass XCoord += stepX |