pyvttbl logo

Table Of Contents

Previous topic

box_plot

Next topic

interaction_plot

This Page

histogram_plot

Produces a histogram plot

Example

>>> from pyvttbl import DataFrame
>>> from random import normalvariate
>>> df['Data']=[normalvariate(mu=0, sigma=1) for i in xrange(1000)]
>>> df.histogram_plot('Data', bins=20)

produces ‘hist(data).png’

hist(data).png

Example with where query

>>> df.histogram_plot('Data', bins=20,
                      where='Data > 1 or Data < -1 ',
                      fname='hist(where_data).png')

produces ‘hist(where_data).png’

hist(where_data).png

Cumulative histogram

>>> df.histogram_plot('Data', bins=20, cumulative=True,
                      fname='cumulative_hist(data).png')

produces ‘cumulative_hist(data).png’

hist(where_data).png
This software is funded in part by NIH Grant P20 RR016454.
© Copyright 2012, Roger Lew. Created using Sphinx 1.1.3.