# Tagged Questions

Tag for questions about building histograms in Mathematica. Apart from generating the graphics, and prettifying them, this also includes methods to extract their data.

0answers
29 views

### Setting chartlabels in a histogram

I have two data that I use to build the following histogram code: ...
1answer
77 views

### How to compare Histogram Data?

I'm using a Dataset ...
0answers
35 views

### Comparing heavy tailed and non-heavy tailed distribution using Mathematica

I have data from a heavy tailed distribution (see picture 1) and a non-heavy tailed distribution (see picture 2) and want to compare it using a histogram on log-scale. However the picture 3 does not ...
1answer
104 views

### Country density plot of lines (highways)

I love solution from question (histogram as well as distrubution) http://mathematica.stackexchange.com/questions/31948/show-density-plot-on-us-map#=. But both cases are a bit more difficult in my ...
1answer
69 views

### How to evaluate differential entropy from raw data?

I want to evaluate the differential entropy according to here $$h(X) = - \int f(x) \log{f(x)} dx$$ where $f$ is the probability density function. Lets create some test data (normal distribution): ...
0answers
28 views

### Sizing elements correctly in a DistributionChart with custom ChartElementFunction

This is a follow-up question to Histogram scale error when using DistributionChart; Weird output of DistributionChart is also related. I'd like to make a DistributionChart where the elements are ...
1answer
83 views

### Histogram from a list of matrices

I have a list of around 100 matrices, that looks like this ...
1answer
89 views

### How to get data from DB into dataset with keys

I'm a Mathematica newbie and I have the following problem: I connect to a Oracle DB and read out a set of variables, further on I want to histogram some of the variables. A Dataset seems to be the ...
0answers
35 views

### Fill histogram with pattern [duplicate]

Is there a way to fill a histogram with a pattern such as hatched lines? I'm imagining something along the lines of ...
1answer
117 views

### Custom SmoothHistogram3D

I decided to make my own SmoothHistogram3D function because I wanted to be able to specify my own bin sizes and not rely on their distribution functions so taking a cue from this answer and bringing ...
1answer
68 views

### Issue with combining weighted data log histograms

I have a bit of a strange problem. I'd like to overlay 3 different logarithmic Histograms with two of them stacked and one separate [*]. Without weights the solution is simple: ...
1answer
67 views

### Binning of listplot [duplicate]

I have two arrays describing a 1-dimensional mass distribution. The first array, $x$, are the (un-sorted, and un-evenly distributed) x-coordinates; the second, $m$, the corresponding masses. I would ...
2answers
156 views

### Histogram with variable bin size [closed]

Suppose I have some dataset,e.g., Histogram[RandomVariate[PoissonDistribution[2], 10000], 10] which gives, $\hspace{2cm}$ How can I change the histogram such ...
2answers
143 views

### How to extract the probability density function from SmoothHistogram? [duplicate]

I have some data.I plot the histogram with SmoothHistogram in Mathematica. If the y-axis of the histogram is my p(x) function, I want to plot f(x)=(1/n)ln(p(x)) ...
2answers
314 views

### Map of United States as a 3D histogram

By combining the state data from here and the extrusion code from here I have managed to make prisms of the various US states such as However, the extrusion method looses information about the ...
2answers
256 views

### Multiple histograms grouped in a chart

I have this problem: I have three distributions and the relative histograms. But I would like to create an histogram in which the three columns of each single histogram for the same bin are put ...
1answer
382 views

### How can we create a histogram distribution from binning data?

HistogramDistribution takes a list of data points, creates a histogram from them, and returns this histogram in a form that can be used as a distribution. I ...
1answer
136 views

### Discontinue, then continue x-axis of 2D Histogram

I have the pictured Histogram. It was generated by the following lines: ...
1answer
136 views

### Get histogram of number of vertices per component of graph H

I have a huge graph with ~8k vertices and ~1k components. I want a histogram showing the number of vertices for each component. How do I do this? EDIT: I'm trying ubpdqn's approach, but not gettting ...
1answer
104 views

### Histogram scale error when using DistributionChart

I'm a novice Mathematica user that is having some problems using the HistogramDensity function in a DistributionChart. My observations are heavily skewed to one category and the height of the other ...
0answers
67 views

### Ticks don't display on Y-Axis of Histogram when using PlotRange

I have a histogram, if I create it without specifying the PlotRange it works fine and the ticks on the Y-Axis are displayed ...
3answers
345 views

### Calculate mean of values in bins

Problem description: I have a list of $\{x,y\}$ pairs. I'd like to divide $x$ into equal[*] bins, say $bx_1, bx_2, \ldots$, calculate $\left<y\right>$ for every bin and then plot the bin values ...
2answers
125 views

### How to 'center' a Histogram

How can a generate a histogram so the peak of the distribution is at x=0? I want to center these histograms for comparison ...
2answers
180 views

### Histogram plot with descriptive statistics on the plot

I am wondering in Mathematica Can we generate histogram plot with descriptive statistics, such as mean, median, and skewness, attached to the plot ? For example, we may place all the statistics to ...
1answer
110 views

### SmoothDensityHistogram with logarithmic density

Is there a simple way for making SmoothDensityHistogram plots have logarithmic scaling for the density? With DensityHistogram ...
1answer
101 views

### How to normalise a line in mathematica

I'm working on creating a line plot from a histogram, as in the following: ...
1answer
173 views

### Better way to plot multiple discrete PDFs?

I often find myself trying to plot multiple PDFs for my courses. I find the default tools available to me are lacking and/or cumbersome. After readings some suggestions here, I have come up with the ...
2answers
175 views

### Analyzing Betting (Keno) in Mathematica [closed]

Keno is a popular lottery game that is available with all of the larger casino softwares. The player is given a ticket with 70 numbers on it. He picks 1 to 11 numbers on the ticket. 20 winning numbers ...
1answer
363 views

### Histogram with a logarithmic scale for the y-axis

How can I get a histogram with a logarithmic scale only on the the y-axis? With ...
1answer
165 views

### DensityHistogram label/display values in Mathematica 8

I'm trying to make a DensityHistogram in Mathematica 8 that overlays the histogram values for each location. What I want is for the value of each square to be ...
1answer
252 views

### Export data of a 3D histogram

I want to export the data of a three dimensional histogram in the format # x y z with a blank line between different lines, so that one can plot the ...
1answer
155 views

### Exporting SmoothHistogram plot data

My program produces a large data set, which is distributed by some unknown function. I've used SmoothHistogram to visualise it crudely as a probability distribution ...
1answer
194 views

### Making a histogram of a user defined random variable

Suppose I want to generate a histogram of $n$ trials a slightly complicated random variable in Mathematica. Is there an easy way to do this? For instance, to make a histogram of a normal variable one ...
1answer
195 views

### Making multiple sideways histograms/bell curves around temporal data

I don't quite remember what this type of plot is called, but here is the idea: I have some data which is indexed by time, and I want to look at the evolution of the distribution of that data as time ...
1answer
71 views

### How can I turn off generation of Dynamic elements by Histogram?

By default Histogram generates Graphics expression with embedded Dynamic constructs as can ...
1answer
124 views

### Understanding distribution chart

How to explain DistributionChart function in mathematica, For example: if I have ...
1answer
95 views

### Histogram For Non-Numerical Data

I have a non-numerical data, let say data = Table[RandomChoice[{0.2, 0.3, 0.25, 0.15, 0.1} -> {"A", "B", "C", "D", "E"}], {500}]; and i want to make a ...
7answers
1k views

### Finding the best way to visualize rather complicated data

I have the following data ...
3answers
472 views

### Log-log scale smooth histogram

How can I create a smooth histogram with a log-log scale? I can use Histogram[data, "Log", "LogCount"] to get a log-log histogram, or I can use ...
1answer
447 views

### How to scale Histogram counts with the value of bin center?

I am analyzing some variates from a steeply falling power-law distribution (approximately with a power index -4) using Histogram[data, Automatic, "PDF"] While ...
2answers
259 views

### How to interpret an image histogram and plot histogram3D for an image?

I'm really finding many ambiguities in how I really should interpret the histogram of an RGB image? I could understand what the height denotes, but did not understand how the pixels get plotted on a ...
2answers
317 views

### Color Histogram3D by Bin Location

I am using a Histogram3D plot to view the correlation of the R & G of an RGB image. Naturally, I want the bins to have a color corresponding to their $x$, $y$ ...
2answers
511 views

### density/histogram plot for date-time data

I have date and time data and want to plot its frequency histogram. Ideally I want to be able to customize the bin size (for example, every 5 minutes or a day). Anybody has this experience?
3answers
965 views

### Circular Plot and Circular Histogram

The spherical or circular data arises when we measure data in degree e.g wind direction, clock and compass etc. Then representation of such data we need to plot circular plot, circular histogram and ...
4answers
651 views

### How do I plot a histogram with hatched shading?

I can plot an ordinary histogram with blue shading and black borders like this: T = RandomVariate[NormalDistribution[0, 1], 10000]; Histogram[T, 30] And I can ...
1answer
283 views

### How can I make a list plot with bars?

Can anyone help me please? I don't want a Histogram; I don't want a BarChart, not even a ListPlot with drop down lines. I want a list plot with drop down columns/bars: please see the link. It is ...
1answer
186 views

### How to compute a discrete histogram of a list [duplicate]

I'm trying to compute the discrete histogram of a set of values. By histogram I mean the absolute frequency a value appears on the dataset, by discrete I mean the values are from a discrete set, e.g. ...
1answer
372 views

### Efficiently generating histograms with large numbers of bins

I'm trying to generate a histogram for a large data set with the following lines of code: ...
1answer
203 views

### Why doesn't FrameTicks work with Histogram?

An example: Histogram[RandomVariate[NormalDistribution[], 1000], PlotRangePadding -> 0, Frame -> True, FrameTicks -> {{{0, 0}}, {}}] I expected this ...
2answers
242 views

### two histograms ratio

I have two histograms and using listplot to draw both. Now, I want to draw a second plot, below the first, with the ratio of each bin. Does anyone know how to do this? Many thanks. This is the code ...