Histogram3D

Histogram3D[{{x1,y1},{x2,y2},}]

plots a 3D histogram of the values {xi,yi}.

Histogram3D[{{x1,y1},{x2,y2},},bspec]

plots a 3D histogram with bins specified by bspec.

Histogram3D[{{x1,y1},{x2,y2},},bspec,hspec]

plots a 3D histogram with bin heights computed according to the specification hspec.

Histogram3D[{data1,data2,}]

plots 3D histograms for multiple datasets datai.

Details and Options

Examples

open allclose all

Basic Examples  (4)

Generate a 3D histogram for a list of pairs:

Multiple datasets:

Generate a probability histogram for a list of values:

Use any graphic for pictorial bars:

Use procedural bars:

Scope  (30)

Data and Layouts  (18)

Specify the number of bins to use:

Specify a different number of bins to use in and :

Specify the bin width:

Specify a different bin width to use in and :

Specify bin delimiters:

Specify different bin delimiters to use in and :

Specify bin delimiters as an explicit list:

Specify different bin delimiters to use in and :

Use different automatic binning methods:

Use logarithmically spaced bins:

Use different height specifications:

Use a height function that accumulates the bin counts over the direction:

Bins associated with a dataset are styled the same:

Nonreal data is taken to be missing:

The data may include units:

Specify units to use:

Specify binning spec with units:

The values in an association are used as elements:

Associations can be nested:

Use the keys as labels:

Use the keys as legends:

The time stamps in TimeSeries, EventSeries, and TemporalData are ignored:

Weights in WeightedData affect the shape of the histogram:

Use different layouts to display multiple datasets:

Control the origin of bars:

Wrappers  (2)

Use wrappers on individual data, datasets, or collections of datasets:

Wrappers can be nested:

Override the default tooltips:

Use PopupWindow to provide additional drilldown information:

Button can be used to trigger any action:

Styling and Appearance  (4)

Use an explicit list of styles for the bars:

Use any gradient or indexed color schemes from ColorData:

ChartBaseStyle can be used to set an initial style for all chart elements:

Style can be used to override styles:

Use any 3D graphic for pictorial bars:

Use built-in programmatically generated bars:

For detailed settings, use Palettes ChartElementSchemes:

Use a monochrome theme in a gray tone:

Labeling and Legending  (6)

Use Labeled to add a label to a dataset:

Use symbolic positions for label placement:

Provide value labels for bars by using LabelingFunction:

Add categorical legend entries for datasets:

Use Legended to add additional legend entries:

Use Placed to affect the positioning of legends:

Options  (43)

BarOrigin  (1)

Change the bar origin:

ChartBaseStyle  (4)

Use ChartBaseStyle to style bars:

ChartBaseStyle combines with ChartStyle:

ChartStyle may override settings for ChartBaseStyle:

ChartBaseStyle combines with Style:

Style may override settings for ChartBaseStyle:

ChartBaseStyle combines with ColorFunction:

ColorFunction may override settings for ChartBaseStyle:

ChartElementFunction  (4)

Get a list of built-in settings for ChartElementFunction:

For detailed settings, use Palettes ChartElementSchemes:

ChartElementFunction appropriate to show the global scale:

Write a custom ChartElementFunction:

Built-in element functions may have options; use Palettes ChartElementSchemes to set them:

ChartElements  (5)

Create a pictorial chart based on any Graphics3D object:

Use a different graphic for each dataset:

Graphics are used cyclically:

Styles are inherited from styles set through ChartStyle etc.:

Use Style to override ChartStyle:

Explicit styles set in the graphic will override other style settings:

ChartLabels  (2)

Place dataset labels above each histogram:

Labeled wrappers around datasets will place additional labels:

Symbolic positions outside the bar:

ChartLayout  (2)

Use different layouts to display multiple datasets:

With multiple datasets that are fairly disjoint, typically "Overlapped" works better:

ChartLegends  (3)

Generate a legend based on chart style:

Use Legended to add additional legend entries:

Use Legended to specify individual legend entries:

Use Placed to control the placement of legends:

Use a legend to label the layers in a stacked histogram:

ChartStyle  (5)

Use ChartStyle to style bars:

Give a list of styles:

Use "Gradient" colors from ColorData:

Use "Indexed" colors from ColorData:

Styles are used cyclically:

Style overrides settings for ChartStyle:

ColorFunction overrides settings for ChartStyle:

ChartElements may override settings for ChartStyle:

ColorFunction  (4)

Color by bar height:

Use ColorFunctionScaling->False to get unscaled height values:

ColorFunction overrides styles in ChartStyle:

Use ColorFunction to combine different style effects:

ColorFunctionScaling  (2)

By default, scaled height values are used:

Use ColorFunctionScaling->False to get unscaled height values:

LabelingFunction  (6)

Use automatic labeling by values through Tooltip and StatusArea:

Do no labeling:

Use Placed to control label placement:

Control the formatting of labels:

Use the dataset position index to generate the label:

Place complete labels as tooltips:

PerformanceGoal  (1)

Generate a bar chart with interactive highlighting:

Emphasize performance by disabling interactive behaviors:

Typically, less memory is required for noninteractive charts:

PlotTheme  (4)

Use a theme with guiding grid lines:

Change the color scheme:

Use a theme with minimal styling:

Add legends to the chart:

Applications  (3)

Create a MatrixPlot from counts extracted from a histogram:

Select a subset of languages available in DictionaryLookup:

Create a histogram of word lengths of various languages:

Histogram for a multivariate slice of a random process:

Properties & Relations  (3)

Histogram3D automatically determines bins to use based on data:

Use BinCounts for explicit binning of data:

Display using BarChart3D:

Use PDF to get parametric probability density function:

Show together with Histogram of random data:

Neat Examples  (1)

Vary charting options to affect display:

Wolfram Research (2008), Histogram3D, Wolfram Language function, https://reference.wolfram.com/language/ref/Histogram3D.html (updated 2015).

Text

Wolfram Research (2008), Histogram3D, Wolfram Language function, https://reference.wolfram.com/language/ref/Histogram3D.html (updated 2015).

CMS

Wolfram Language. 2008. "Histogram3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/Histogram3D.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_histogram3d, author="Wolfram Research", title="{Histogram3D}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/Histogram3D.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_histogram3d, organization={Wolfram Research}, title={Histogram3D}, year={2015}, url={https://reference.wolfram.com/language/ref/Histogram3D.html}, note=[Accessed: 19-March-2024 ]}