GET TUTORING NEAR ME!

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

    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 | PlotInteractivity | 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

    History

    introduced in Version 7 (November 2008) last modified in Version 14.2 (January 2025)

    Back to List | POWERED BY THE WOLFRAM LANGUAGE