Histogram[{x1,x2,…}]
generates a histogram of the univariate data {x1,x2,…}.
Histogram[{f1,f2,…},FrequencyData->True ]
generates a histogram of the univariate frequency data {f1,f2,…}, where fi is the frequency with which the original data occurs in category i.
Histogram
Histogram[{x1,x2,…}]
generates a histogram of the univariate data {x1,x2,…}.
Histogram[{f1,f2,…},FrequencyData->True ]
generates a histogram of the univariate frequency data {f1,f2,…}, where fi is the frequency with which the original data occurs in category i.
Details and Options
- To use Histogram, you first need to load the Histograms Package using Needs["Histograms`"].
- The width of each bar in the histogram is proportional to the width of the interval defining the respective category.
- The area of each bar in the histogram is proportional to the frequency with which the data falls in that category.
- The following options can be given:
-
BarOrientation Vertical how to arrange the bars
Examples
Basic Examples (3)
Histogram of 1000 normally distributed random numbers:
Histogram of 1000 uniformly distributed random numbers:
Histogram from a list of frequencies:
See Also
Related Guides
Text
Wolfram Research (2008), Histogram, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/Histogram.html.
CMS
Wolfram Language. 2008. "Histogram." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Histograms/ref/Histogram.html.
APA
Wolfram Language. (2008). Histogram. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Histograms/ref/Histogram.html
BibTeX
@misc{reference.wolfram_2025_histogram, author="Wolfram Research", title="{Histogram}", year="2008", howpublished="\url{https://reference.wolfram.com/language/Histograms/ref/Histogram.html}", note=[Accessed: 23-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_histogram, organization={Wolfram Research}, title={Histogram}, year={2008}, url={https://reference.wolfram.com/language/Histograms/ref/Histogram.html}, note=[Accessed: 23-November-2025]}