Histogram2D.py - functions for handling two-dimensional histograms.¶
- Tags
Python
-
Histogram2D.
Calculate
(values, mode=0, bin_function=None)¶ Return a list of (value, count) pairs, summarizing the input values. Sorted by increasing value, or if mode=1, by decreasing count.
If bin_function is given, map it over values first.
-
Histogram2D.
Print
(h, bin_function=None)¶ print a histogram.
A histogram can either be a list/tuple of values or a list/tuple of lists/tuples where the first value contains the bin and second contains the values (which can again be a list/tuple).
- Parameters
format – output format. 0 = print histogram in several lines, 1 = print histogram on single line