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’
.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’
.png)
Cumulative histogram¶
>>> df.histogram_plot('Data', bins=20, cumulative=True,
fname='cumulative_hist(data).png')
produces ‘cumulative_hist(data).png’
.png)