# Tag Info

## Hot answers tagged histograms

6 votes

### Is there a way to make a histogram normalized not to unity but to a specific value of choice?

As described in the documentation for Histogram, the third argument can be a function that accepts two arguments, bins and counts, and returns a list of desired heights. To calculate the total area of ...
• 24.9k
6 votes
Accepted

### How to show two plots with different axes?

We can use ResourceFunction["CombinePlots"] ...
• 395k
6 votes

...
• 70k
5 votes

### Plotting the logarithm of bin counts with Histogram3D

You can add a third scaling function to affect the vertical axis: ...
• 47.5k
5 votes

### Three- dimensional histogram with color

Update: "i want the largest positive to be dark blue, small positive to be light blue, small negative to be light red and large negative to be dark red" ...
• 395k
5 votes

### Gray level shading of image histogram bins

B = RandomImage[1, {200, 200}]; ImageHistogram[B, ColorFunctionScaling -> False, ColorFunction -> GrayLevel] With your image we have to scale the vertical ...
• 47.5k
5 votes

### Extracting counts of contiguous zeros and ones from a binary array

list = {0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1}; Using SequenceSplit (new in 11.3) ...
• 70k
4 votes

### Extracting counts of contiguous zeros and ones from a binary array

list = {0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1}; Using PositionIndex, Split and ...
• 23.9k
4 votes

### Extracting counts of contiguous zeros and ones from a binary array

Using SequenceCases: x = {0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1}; SequenceCases[x, k : {1 ..} :> Length@k] Using ...
• 54k
4 votes

### Gray level shading of image histogram bins

Do it yourself using a bar chart: ...
• 25.3k
4 votes

### Plotting histogram from a list of bin boundaries and counts V2

You can use bin lists and counts returned by HistogramList as the second and third arguments in Histogram (with arbitrary fake ...
• 395k
3 votes

...
• 395k
3 votes
Accepted

### Plotting histogram from a list of bin boundaries and counts V2

One can use WeightedData with Histogram to obtain a histogram. ...
• 41.7k
3 votes

### Extracting counts of contiguous zeros and ones from a binary array

Using ArrayMesh together with BoundaryMesh ( just a different projection ... ) ...
• 3,471
2 votes

### Finding where maximum of histogram occurs

SeedRandom[2]; data = RandomReal[1000, {1000}]; {b, c} = HistogramList[data, {20}]; Using TakeLargest with its Index - option <...
• 70k
2 votes
Accepted

### Plot of a histogram is exported with wrong ticks if log-transformed data are used

This bug appears to have been fixed sometime before the release of version 13.0:
• 68.4k
2 votes

### Plotting histogram from a list of bin boundaries and counts V2

The reason for wanting to use BarChart isn't stated but if there's some need to do so, you can get essentially the same result as ...
• 41.7k
2 votes
Accepted

### Unable to check own distribution

\$Version (* "13.3.0 for Mac OS X ARM (64-bit) (June 3, 2023)" *) Clear["Global`*"] The assumptions for the distribution should include ...
• 158k
2 votes
Accepted

...
• 395k
1 vote
Accepted

### Three- dimensional histogram with color

Actually I found what I wanted using a different function: data = Import["your_file_path.txt", "Table"]; (* Extract columns x, y, z, and c *) extractedData = data[[All, {2, 3, 4, 6}...
• 31
1 vote

### Modifying horizontal axis of a PDF plot

Use Histogram with the option BarOrigin -> Left and use ParametricPlot for graphing the <...
• 395k
1 vote

### Modifying horizontal axis of a PDF plot

If I understand your description correct, you want to plot the inverse of the PDF. The problem here is, that the inverse is a multivalued function, therefore we can not use "FunctionInverse"....
• 51.8k
1 vote

### Finding where maximum of histogram occurs

SeedRandom[2]; data = RandomReal[1000, {1000}]; hlist = HistogramList[data, {20}]; Using AssociationThread and ...
• 23.9k
1 vote

### Finding where maximum of histogram occurs

Using PositionLargest: (introduced with v13.2) ...
• 54k
1 vote

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

Since Version 12.1 there is HatchFilling and PatternFilling with countless options. ...
• 70k

Only top scored, non community-wiki answers of a minimum length are eligible