Produces histograms.
Created on Nov 29, 2011
A histogram class.
Increments the count of value x by count (default 1).
Returns the current count of x.
Returns a string representation of the histogram in ASCII.
width - The maximum width to use.
chr - The character to use in the plot.
valTitle - The title to use for values.
inclCount - Include tha tacture count for each value?
list of weak references to the object (if defined)
Tests are in test/TestHistogram.py
$ python3 test/testHistogram.py
$ coverage run test/testHistogram.py
...
$ coverage report -m
from TotalDepth.util import Histogram
myH = Histogram.Histogram()
for x in range(1, 12):
self._hist.add(x, x)
print(self._hist.strRep())
# Prints """ 1 | ++++++
2 | +++++++++++++
3 | +++++++++++++++++++
4 | +++++++++++++++++++++++++
5 | ++++++++++++++++++++++++++++++++
6 | ++++++++++++++++++++++++++++++++++++++
7 | +++++++++++++++++++++++++++++++++++++++++++++
8 | +++++++++++++++++++++++++++++++++++++++++++++++++++
9 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
11 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"""