def pmf_hist(a, bins=10):
 (n, x) = np.histogram(a, bins)
 h = (n / n.sum())
 w = (x[1] - x[0])
 return (x[:(-1)], h, w)

def pmf_hist ( a , bins = 10 ) : ( n , x ) = np . histogram ( a , bins ) h = ( n / n . sum ( ) ) w = ( x [ 1 ] - x [ 0 ] ) return ( x [ : ( - 1 ) ] , h , w )
return arguments to plt .