Get Math Help

GET TUTORING NEAR ME!

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

    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 14.2 (future)

    Find the right fit or it’s free.

    We guarantee you’ll find the right tutor, or we’ll cover the first hour of your lesson.