Пример #1
0
def plotdistrib(array, ndivs=None, low=None, width=None, **options):
    """Plot a distribution of array"""
    from rasmus import util
    d = util.distrib(array, ndivs, low, width)
    p = options.setdefault("plot", Gnuplot())
    options.setdefault("style", "boxes")

    p.plot(util.histbins(d[0]), d[1], **options)
    return p
def plotdistrib(array, ndivs=None, low=None, width=None, **options):
    """Plot a distribution of array"""
    from rasmus import util
    d = util.distrib(array, ndivs, low, width)
    p = options.setdefault("plot", Gnuplot())
    options.setdefault("style", "boxes")
    
    p.plot(util.histbins(d[0]), d[1], **options)
    return p
Пример #3
0
def plothist(array, ndivs=None, low=None, width=None, **options):
    """Plot a histogram of array"""
    from rasmus import util
    h = util.hist(array, ndivs, low, width)
    p = options.setdefault("plot", Gnuplot())
    options.setdefault("style", "boxes fill solid")

    p.plot(util.histbins(h[0]), h[1], **options)
    return p
def plothist(array, ndivs=None, low=None, width=None, **options):
    """Plot a histogram of array"""
    from rasmus import util
    h = util.hist(array, ndivs, low, width)
    p = options.setdefault("plot", Gnuplot())
    options.setdefault("style", "boxes fill solid")
    
    p.plot(util.histbins(h[0]), h[1], **options)
    return p