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 ...
Domen's user avatar
  • 24.9k
6 votes
Accepted

How to show two plots with different axes?

We can use ResourceFunction["CombinePlots"] ...
kglr's user avatar
  • 395k
6 votes

How to show two plots with different axes?

...
eldo's user avatar
  • 70k
5 votes

Plotting the logarithm of bin counts with Histogram3D

You can add a third scaling function to affect the vertical axis: ...
Roman's user avatar
  • 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" ...
kglr's user avatar
  • 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 ...
Roman's user avatar
  • 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) ...
eldo's user avatar
  • 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 ...
E. Chan-López's user avatar
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 ...
Syed's user avatar
  • 54k
4 votes

Gray level shading of image histogram bins

Do it yourself using a bar chart: ...
flinty's user avatar
  • 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 ...
kglr's user avatar
  • 395k
3 votes

Histogram styling and layout

...
kglr's user avatar
  • 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. ...
JimB's user avatar
  • 41.7k
3 votes

Extracting counts of contiguous zeros and ones from a binary array

Using ArrayMesh together with BoundaryMesh ( just a different projection ... ) ...
vindobona's user avatar
  • 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 <...
eldo's user avatar
  • 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:
Jason B.'s user avatar
  • 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 ...
JimB's user avatar
  • 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 ...
Bob Hanlon's user avatar
  • 158k
2 votes
Accepted

Histogram styling and layout

...
kglr's user avatar
  • 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}...
Kregnach's user avatar
1 vote

Modifying horizontal axis of a PDF plot

Use Histogram with the option BarOrigin -> Left and use ParametricPlot for graphing the <...
kglr's user avatar
  • 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"....
Daniel Huber's user avatar
  • 51.8k
1 vote

Finding where maximum of histogram occurs

SeedRandom[2]; data = RandomReal[1000, {1000}]; hlist = HistogramList[data, {20}]; Using AssociationThread and ...
E. Chan-López's user avatar
1 vote

Finding where maximum of histogram occurs

Using PositionLargest: (introduced with v13.2) ...
Syed's user avatar
  • 54k
1 vote

How do I plot a histogram with hatched shading?

Since Version 12.1 there is HatchFilling and PatternFilling with countless options. ...
eldo's user avatar
  • 70k

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