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