# Questions tagged [histograms]

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

380 questions
Filter by
Sorted by
Tagged with
55 views

### Histogram and probability curve for a range of values

I don't know if I will be clear about what I am asking for, but here is my problem: how could I create a histogram (with the probability curve, later) when I have many different values (each one with ...
420 views

### Tuples optimization challenge

Consider a function that for a given integer $0\le n <256$ computes the number of leading zeros in its binary representation. ...
98 views

### DateHistogram with DateReduction -> editing x axis

I have a list of dates spanning over multiple years (i.e.): ...
1 vote
78 views

### How to set a max value in SmoothDensityHistogram?

I'm using SmoothDensityPlot to compare two data sets DATA1 and DATA2, in which, each one has its respective maximum value, so I would like to set a BarLegend (already discussed here) corresponding to ...
113 views

### Custom normalization of Histogram

Let us consider the following lists SeedRandom list1 = RandomReal[{-10, 10}, 1000]; list2 = RandomReal[{-10, 10}, 200]; Histogram[{list1, list2}, 100] The ...
15 views

### How to add Barlegend in DensityHistogram as z axis?

I have data in the form of x={1,3,5,6,2,4,6,4.5,2.5,2.1,5.7}; y={3,6,2,1,8,4,3,9,11,16,9}; z={0.000001,0.0004,0.000012,0.000005,0.000002,0.000003,0.0010008,0.000009,0.000007,0.005,0.000009}; Data={1, ...
246 views

### Fit function to histogram

I have a list: histx={-56.6335, -57.2327, -57.8607, -57.9682, -57.0061, -57.1872,-56.9209, -56.1284,...}; I managed to create the histogram that I wanted to: But ...
1 vote
91 views

### How to get the Histogram based on the intensity cross section of each spot?

I am supposed to plot the histogram based on the intensity cross-section of each circular area, I have done counting manually each area based on the pixel intensity cross-section of each green and red ...
179 views

### HistogramList with logarithmic bins?

HistogramList gives the possibility to bin the elements in a list. Is it possible to have a logarithmic spacing? In an histogram I would do something like: ...
274 views

### Histogram as scatter plot

I want to draw a histogram as scatter plot, i.e. bin center vs. count. I found only a cumbersome way (steps 1-4) to achieve this standard procedure. Is there a more efficient way to draw a bin-...
85 views

### How to extract bar heights from histogram

In mathematica I have plotted a histogram with the PDF option from a list of values. How can I extract the heights of the bars in the histogram so that I can compare them with those of another ...
157 views

### Is there a way to generate a data-driven Monte Carlo sample from a histogram?

I have a vector with 50 elements. These are values of a random variable. I have represented the data as Histogram[RandomVariable1Histogram]. However, I need to ...
100 views

### Why is WeightedData slow?

I have been using WeightedData with Histogram, HistogramList, ...
138 views

...
136 views

### What is the default binning method of Histogram[]?

Histogram[] command returns a histogram of a set of data. There are different methods of binning, such as, Scott's rule, which we can specify the binning method in Mathematica. My question is what is ...
1 vote
180 views

### FindDistribution doesn't return a decent result

I have the following data set: ... 90 views

### Histogram and Around

If I have histogram as ... 80 views

### How can I label a table of histograms with the names of the data symbols, not the data themselves?

How can I label a table of histograms with the names of the data symbols, not the data themselves? If I want to make a table of plots with each plot labeled with the name of the function it plots, ...
1 vote
74 views

### Sample discrete distributions with a good range of observed entropies

For a numerical sanity check, I need to sample random sequences of $n$ positive numbers adding up to 1, and having a high chance of observing both high entropy and low entropy sequences. Compute the ...
105 views

### adding text above bins of histogram

I have the following histogram: ... 1 vote
38 views

### Cannot combine graphic objects while plotting two Smooth Histograms

I am trying to plot two smooth histograms, which I'm generating separately so I can chose their PlotStyle separately. When I run the code, it says I cannot combine the two graphic objects. What am I ...
39 views

### Changing the color and thickness of smooth histograms of two sets curves on the same graph

I have a code (shown below) where I generate two different sets of data and plot the two sets as a smooth histogram on the same graph. The code works pretty well. What I'm having an issue with is ...
329 views

### Histogram (automatic binning)

There are different methods for choosing widths of bins for a histogram, like Freedman-Diaconis rule. In Mathematica, without choosing a specific method, with the command ... 1 vote
53 views

### How can I set the leftmost x-value of a Histogram?

The following code: ...
1 vote
90 views

### plotting a Histogram with a list of x and y values

I have a list of values : ...