(self, data, bins=10)
return ax
Do a pylab histogram of 1 or more lists
Do a pylab histogram of 1 or more lists
Do a pylab histogram of 1 or more lists
def doHistogram(self, data, bins=10):
        """Do a pylab histogram of 1 or more lists"""
        if len(data) == 1:
            ydim=1
        else:
            ydim=2
        dim=int(ceil(len(data)/2.0))
        i=1
        #fig = pylab.figure()
        for r in data:
            if len(r)==0:
                continue
            ax = pylab.subplot(ydim,dim,i)
            print (r)
            for j in range(len(r)):
                r[j] = float(r[j])
            pylab.hist(r,bins=bins)
            i=i+1
        return ax
def doHistogram ( self , data , bins = 10 ) : if len ( data ) == 1 : ydim = 1 else : ydim = 2 dim = int ( ceil ( len ( data ) / 2.0 ) ) i = 1 #fig = pylab.figure() for r in data : if len ( r ) == 0 : continue ax = pylab . subplot ( ydim , dim , i ) print ( r ) for j in range ( len ( r ) ) : r [ j ] = float ( r [ j ] ) pylab . hist ( r , bins = bins ) i = i + 1 return ax