Histograms`
Histograms`

HistogramScale

As of Version 7.0, HistogramScale has been superseded by an optional argument hspec for the built-in Wolfram Language function Histogram.

HistogramScale

is an option of histogram functions that specifies the way in which the bar heights are to be scaled.

Details and Options

  • To use HistogramScale, you first need to load the Histograms Package using Needs["Histograms`"].
  • HistogramScale->Automatic does not scale the bar heights when there are equally sized intervals.
  • HistogramScale->Automatic scales the bar heights by the interval sizes when the intervals are not equally sized.
  • HistogramScale->True always scales the bar heights by the interval sizes regardless of whether the interval sizes are equal.
  • HistogramScale->k scales bar heights so that the bar areas or bar volumes sum to the positive number k.
  • HistogramScale->1 gives a probability density plot.

Examples

Basic Examples  (1)

By default each bar height corresponds to the number of values in the interval:

Use HistogramScale->1 to get a probability density:

Wolfram Research (2007), HistogramScale, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html.

Text

Wolfram Research (2007), HistogramScale, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html.

CMS

Wolfram Language. 2007. "HistogramScale." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html.

APA

Wolfram Language. (2007). HistogramScale. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html

BibTeX

@misc{reference.wolfram_2023_histogramscale, author="Wolfram Research", title="{HistogramScale}", year="2007", howpublished="\url{https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html}", note=[Accessed: 18-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_histogramscale, organization={Wolfram Research}, title={HistogramScale}, year={2007}, url={https://reference.wolfram.com/language/Histograms/ref/HistogramScale.html}, note=[Accessed: 18-April-2024 ]}