Skip to main content

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.

Filter by
Sorted by
Tagged with
-4 votes
3 answers
164 views

Unable to check own distribution

Good afternoon I need to estimate different distributions from some data. Among these distributions, it is necessary to use the Kritsky-Menkel distribution. I set a formula for the distribution ...
4 votes
1 answer
99 views

Generate a List of Lists from Two Lists for Histogram Input

I have two lists of equal length: ...
5 votes
6 answers
339 views

Extracting counts of contiguous zeros and ones from a binary array

I'm a novice with Mathematica, but you guys have been very helpful to me in the past. I have a binary array [100, J repetitions] consisting of zeroes and ones. I'd like to extract a histogram of the ...
0 votes
1 answer
118 views

Bin edges from BinCounts

I'm working with a set of data binning values. I'm using bincount and binlists to find bins that meet a certain criteria and then testing a list to see which are within one of those bins. This list of ...
0 votes
0 answers
37 views

Color Range of Chart Style in DensityHistogram and How to Annotate?

I have experimental data in the structure of thousands of {x,y} set. So, I want to get the 2D histogram of x and y. I found the Function called DensityPlot and DensityHistogram. The former seemed that ...
1 vote
1 answer
61 views

Plotting the logarithm of bin counts with Histogram3D [closed]

I am using Histogram3D to plot 2d data. Sometimes with Histogram I use double logarithmic axis to view e.g. power laws, using ...
2 votes
0 answers
37 views

How to avoid disparity in BarChart? [duplicate]

Consider the following code ...
3 votes
2 answers
198 views

How to show two plots with different axes?

What is the easiest way to plot something like where either x-y axes pair is independent of the other. I tried combining BarChart and ...
5 votes
6 answers
1k views

Finding where maximum of histogram occurs

If I have made a histogram of some data. How can I find out at which x-bin position the maximum occurs? ...
2 votes
2 answers
110 views

Three- dimensional histogram with color

I have data, that has the following form: i x y z c ; where i is a number, that goes from 1 to N, x,y,z are thought of as coordinates, and c is supposed to be a value that I want to present as color. ...
3 votes
2 answers
114 views

Histogram styling and layout

Using ChartLayout, the histograms are tiled as expected as below, however the ChartStyle is not reflected (histograms with ...
1 vote
0 answers
36 views

Low EPS export quality for Histogram/BarChart

I like to export a figure as an EPS and continue to edit it afterwards (e.g., with inkscape). In the past, I was only exporting plots and everything worked fine: figures had high quality, and I could ...
4 votes
2 answers
218 views

Gray level shading of image histogram bins

How to shade bins in an ImageHistogram to match the image GrayLevel? Inputs Import the following graphic: ...
0 votes
2 answers
61 views

Modifying horizontal axis of a PDF plot

I have a bunch of particles that I can measure their volume. PDFs of the size distribution by volume of particles, v(a), measured are reasonably well represented by lognormal distributions of the ...
22 votes
7 answers
3k 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 ...
6 votes
0 answers
96 views

SetOptions[Plot, FIlling -> Axis] breaks SmoothHistogram of a CDF

Bug introduced in 12.1 or earlier and persists through 13.3 . UPDATE: I reached out to Wolfram, and they confirmed that it's a bug. I am using version 12.3. Here's a simple plot of some randomly ...
0 votes
0 answers
71 views

Plot BarChart and fixing the bars

I have 3 problems plotting the amplitudes of eigenvectors of a matrix H vertically (column). e.g. ...
0 votes
0 answers
26 views

Is there a simple way to get histogram-styled plots from explicit data? [duplicate]

I have a bunch of data that lends itself to plotting as a histogram, but for various reasons I can't really use the built-in Histogram function, and instead I have ...
2 votes
3 answers
164 views

Plotting histogram from a list of bin boundaries and counts V2 [duplicate]

I would like to ask the very same question as Plotting histogram from a list of bin boundaries and counts, because I do not find it sufficiently answered. "If I use HistogramList (in mathematica) ...
1 vote
0 answers
147 views

How to make a histogram-like plot?

Consider the following data: ...
0 votes
0 answers
60 views

Exporting histogram to PDF with log scaled heights does not seem to work on 11.2

I'm on version 11.2 and using Windows 10. Here is some data and a histogram of it with log scaled heights. ...
2 votes
1 answer
100 views

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

I've generated a histogram of my data, using their log values, and exported the resulting plot as pdf. To my surprise, the ticks in exported plot were replaced by the logarithm of the ticks in the ...
0 votes
0 answers
32 views

Recreating SmoothDensityHistogram and SmoothKernelDistribution in another programming language [duplicate]

For the purpose of a research project I need to recreate results of some numeric simulation that was done in Wolfram Mathematica (I'm writing it in Python), regardless of the details, there is a ...
7 votes
1 answer
190 views

Problem with DateHistogram Epilog

Bug introduced in 11.3 or earlier and persisting through 13.3.0 @Szabolcs reported this bug on the WRI Redmine bug tracker 11 months ago. It is still "In Progress". ...
8 votes
3 answers
244 views

DateHistogram FrameLabel overlaps FrameTicks

Bug introduced in 11.3 or earlier and persisting through 13.3.0 ...
3 votes
1 answer
47 views

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

I am trying to create a histogram that is normalized to a value other than 1, so this wouldnt work for me: Histogram[list,"PDF"]
5 votes
2 answers
176 views

How to add individual plot labels to histograms in a multiple dataset layout?

How can I add individual labels to each histogram in a multiple dataset layout? See the following example: ...
4 votes
1 answer
269 views

Illustrating the central limit theorem

I'm working on this question is from Wolfram Mathematica online course. I tried my best to find the answer, still not getting it right The question is: Make a list of histograms of 10000 instances of ...
4 votes
4 answers
189 views

Control plot range of logarithmic histogram

When drawing a histogram with a logarithmic vertical scale, how can I control the vertical plot range? I.e., how can I control where the bars originate? On a linear plot, bars will start at zero, but ...
-1 votes
1 answer
135 views

How to plot the frequency histogram of a given data? [closed]

...
0 votes
0 answers
44 views

Was there ever a package called "BinThis"?

I'm working my way through someone's old code and rebuilding it. In one of the notebooks it appears they used a package called "BinThis" which I cannot seem to find any documentation for or ...
1 vote
1 answer
96 views

How to specify bins in the Histogram which are right closed and left open except for the first one?

Consider the following data as an example: data={1,2,3,4,5,6,7}; Histogram[data,{1,9,2}] This produces the following histogram: This has done left closed right ...
1 vote
1 answer
99 views

Histogram now showing the correct bin width and height [closed]

I have multiple datasets that I want to compare in one histogram with values ranging from von 4 to 20. All of them work correctly except the last one. ...
1 vote
3 answers
111 views

How to use PairedBarChart to compare two BoxWhiskerCharts?

I have a time-series of BoxWhiskerCharts comparing two variables. ...
0 votes
0 answers
32 views

How can I keep a distance to the abscissa axis when specifying an AxisLabel in the form "text"?

These observations are from Mathematica 12.3.0.0 on Linux x86 (64 Bit). With AxisLabel->{"A", "number"} the character ...
1 vote
0 answers
34 views

How to use ScalingFunctions for multiple superimposed histograms?

Consider the simple MWE ...
0 votes
1 answer
111 views

Plotting histogram from a list of bin boundaries and counts [closed]

If I use HistogramList (in mathematica) to create list of bin boundaries and bin counts from my data, can I use this list to plot histogram? I want to add the counts from various datasets before ...
7 votes
2 answers
363 views

How to generate a horizontal histogram with words?

I have a dataset of the type: ...
2 votes
2 answers
196 views

Generate a list of numbers based on histogram data

Given the following histogram data: {{0, 1/10, 1/5, 3/10, 2/5, 1/2, 3/5, 7/10, 4/5, 9/10, 1}, {129, 57, 46, 42, 40, 40, 43, 45, 57, 129}}. That correspond to the ...
0 votes
2 answers
75 views

A few questions about histogram plot

Consider the following plot: ...
4 votes
1 answer
58 views

Floating LogScale histogram

I have a histogram that I represent on a base 10 semi-log scale, and I need to fix the plot range. If I set the lower bound for the logarithmic axis, the histogram bins do not stretch downward fully. ...
7 votes
2 answers
326 views

Plotting a hexagonal histogram

For positive integers $D$, I have a function s[D_] which creates a list of complex numbers, all of the form $a+b\sqrt{-D}$, where $a$ and $b$ are integers. These ...
1 vote
1 answer
86 views

BinCounts for a list - error?

I'm a relative novice with Mathematica and could really use some help. I would like to get the heights of bars from a number of histograms, and thought that BinCounts would be a more efficient way to ...
4 votes
1 answer
81 views

Cross sections of Histogram3D in both dimensions

I am trying to visualize a list of about 1 million {x, y} tuples, and for this I made ...
1 vote
1 answer
257 views

Two dimensional histogram with HistogramList

I have been trying to prepare a 2D histogram from a 2D-list; the dataset is: data=RandomVariate[NormalDistribution[0, 1], {200, 2}]; if I do ...
1 vote
1 answer
166 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 ...
2 votes
2 answers
77 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 ...
7 votes
1 answer
442 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. ...
4 votes
2 answers
111 views

DateHistogram with DateReduction -> editing x axis

I have a list of dates spanning over multiple years (i.e.): ...
1 vote
1 answer
108 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 ...

1
2 3 4 5
9