Get Math Help

Get Tutoring Info Now!

(800) 434-2582

By submitting the following form, you agree to Club Z!'s Terms of Use and Privacy Policy

Home / Get Math Help

Histogram

Usage

Histogram[{x1, x2, ...}] plots a histogram of the values xi.
Histogram[{x1, x2, ...}, bspec] plots a histogram with bin width specification bspec.
Histogram[{x1, x2, ...}, bspec, hspec] plots a histogram with bin heights computed according to the specification hspec.
Histogram[{data1, data2, ...}, ...] plots histograms for multiple datasets datai.

Basic examples

Generate a histogram for a list of values:
In[1]:=Histogram[RandomVariate[NormalDistribution[0, 1], 200]]
Out[1]=
Multiple datasets:
In[1]:=data1=RandomVariate[NormalDistribution[0, 1], 500];
data2=RandomVariate[NormalDistribution[3, 1/2], 500];
In[2]:=Histogram[{data1, data2}]
Out[2]=
Generate a probability histogram for a list of values:
In[1]:=Histogram[RandomVariate[WeibullDistribution[2, 1], 1000], Automatic, Probability]
Out[1]=

Options

AlignmentPoint | AspectRatio | Axes | AxesLabel | AxesOrigin | AxesStyle | Background | BarOrigin | BaselinePosition | BaseStyle | ChartBaseStyle | ChartElementFunction | ChartElements | ChartLabels | ChartLayout | ChartLegends | ChartStyle | ColorFunction | ColorFunctionScaling | ColorOutput | ContentSelectable | CoordinatesToolOptions | DisplayFunction | Epilog | FormatType | Frame | FrameLabel | FrameStyle | FrameTicks | FrameTicksStyle | GridLines | GridLinesStyle | ImageMargins | ImagePadding | ImageSize | ImageSizeRaw | LabelingFunction | LabelStyle | LegendAppearance | Method | PerformanceGoal | PlotLabel | PlotRange | PlotRangeClipping | PlotRangePadding | PlotRegion | PlotTheme | PreserveImageOptions | Prolog | RotateLabel | ScalingFunctions | TargetUnits | Ticks | TicksStyle

Relationships with other entities

PairedHistogram | Histogram3D | DensityHistogram | HistogramList | SmoothHistogram | HistogramDistribution | ListPlot | BinCounts | Tally | BarChart | ImageHistogram | DiscretePlot | PDF

Relationships with other entities

History

introduced in Version 7 (November 2008)
last modified in Version 13 (December 2021)

Back to List | POWERED BY THE WOLFRAM LANGUAGE