HistogramCategories
is an option of histogram functions that specifies the categories in the histogram.


HistogramCategories
HistogramCategories
is an option of histogram functions that specifies the categories in the histogram.
Details and Options
- To use HistogramCategories, you first need to load the Histograms Package using Needs["Histograms`"].
- With HistogramCategories->Automatic, the categories are chosen to be intervals of equal width. The number of categories is chosen automatically.
- HistogramCategories->n specifies that n equally sized categories should be used.
- HistogramCategories->{m,n} specified that an m×n grid of categories should be used for Histogram3D.
- HistogramCategories->{c1,c2,…,cn} uses categories {c1≤x<c2,…,cn-1≤x<cn}.
- HistogramCategories->{{c1,…,cn},{d1,…,dl}} specifies unequally sized categories in Histogram3D.
Examples
Basic Examples (1)
Automatically choose categories by default:
Use five equally sized categories:
With ApproximateIntervals->True, the number of categories depends on the range of values:
See Also
Text
Wolfram Research (2007), HistogramCategories, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html.
CMS
Wolfram Language. 2007. "HistogramCategories." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html.
APA
Wolfram Language. (2007). HistogramCategories. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html
BibTeX
@misc{reference.wolfram_2025_histogramcategories, author="Wolfram Research", title="{HistogramCategories}", year="2007", howpublished="\url{https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_histogramcategories, organization={Wolfram Research}, title={HistogramCategories}, year={2007}, url={https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html}, note=[Accessed: 16-August-2025]}