PEATDB/TablePlot.py
def doHistogram(cls, recs, bins=10, title='', xlabel=None, ylabel=None):
        """Do a pylab histogram of a dict with 1 or more lists"""
        dim=int(ceil(len(recs)/2.0))
        i=1
        for r in recs:
            if len(recs[r])==0:
                continue
            pylab.subplot(2,dim,i)
            i=i+1
            histogram = pylab.hist(recs[r],bins=bins)                         
            pylab.title(r)
            pylab.xlabel(xlabel)
            pylab.ylabel(ylabel)        
        return histogram
Do a pylab histogram of a dict with 1 or more lists
Do a pylab histogram of a dict with 1 or more lists
Do a pylab histogram of a dict with 1 or more lists
def doHistogram(cls, recs, bins=10, title='', xlabel=None, ylabel=None):
        dim=int(ceil(len(recs)/2.0))
        i=1
        for r in recs:
            if len(recs[r])==0:
                continue
            pylab.subplot(2,dim,i)
            i=i+1
            histogram = pylab.hist(recs[r],bins=bins)                         
            pylab.title(r)
            pylab.xlabel(xlabel)
            pylab.ylabel(ylabel)        
        return histogram
def doHistogram ( cls , recs , bins = 10 , title = '' , xlabel = None , ylabel = None ) : dim = int ( ceil ( len ( recs ) / 2.0 ) ) i = 1 for r in recs : if len ( recs [ r ] ) == 0 : continue pylab . subplot ( 2 , dim , i ) i = i + 1 histogram = pylab . hist ( recs [ r ] , bins = bins ) pylab . title ( r ) pylab . xlabel ( xlabel ) pylab . ylabel ( ylabel ) return histogram
Do a pylab histogram of a dict with 1 or more lists
Do a pylab histogram of a dict with 1 or more lists
"""Do a pylab histogram of a dict with 1 or more lists"""
cls
recs
bins
title
xlabel
ylabel