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
1answer
60 views

Plotting evolution of probability with time

I have compiled data about the evolution of a function with time and the data looks something like this. I wanted to plot this data in the form of a density histogram such that every row represents ...
4
votes
1answer
40 views

Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
4
votes
2answers
172 views

Smooth Density Histogram bounded on non-rectangular domain

I'm trying to plot the Smooth Density Histogram of a double pendulum (particularly the location of the bottom pendulum). Since a pendulum has physical constraints, when shown in the Smooth Density ...
4
votes
3answers
387 views

Construct Distribution Histogram From Random Variable

Given a Beta Random Variable $X$ with parameters $\alpha, \beta$ and a positive constant $n$, suppose I am interested in the distribution of: $$Y:=\lfloor nX\rfloor$$ Suppose I want a histogram ...
4
votes
2answers
318 views

Mysterious behaviour of ParallelTable

This question is related to Export bug in combination with ParallelTable?. The following code shows an even stranger bug than in the upper question. The y-axis should always be logarithmic, but in ...
4
votes
1answer
74 views

PDF Export of logarithmic histogram contains no axes labeling

I have the following data: ...
4
votes
2answers
820 views

Thickness of bars in a histogram

How can I control the thickness of the bars (here vertical lines) in a Histogram plot? For example in the plot below (of the corresponding image: http://goo.gl/...
4
votes
1answer
326 views

Rescuing a vertically clipped histogram

I recently ran a rather time intensive calculation and plotted the results in a histogram by simply called Histogram[data]. However, because of a rather serious error on my part, I recently lost my ...
4
votes
1answer
1k views

Histogram: Compare PDF to Data

Goal I would like to make a plot which satisfies the following: Formost it should contain the Histogram of the data, with an overlay of the PDF Two y-axes, the left being the count for the elements ...
4
votes
1answer
120 views

Small output glitch with Histogram

I'm experiencing a small formating glitch with an histogram. I want to define an histogram with a square frame, with precise vertical ticks from 0 to 10. But I'm still getting a larger range, and I ...
4
votes
1answer
536 views

spherical histogram for 3D object

I want to develop a shperical histogram for 3D object. Given a 3D object, I put it in a cylinder where its axis pass through the centroid of the object. The cylinder is sampled into a number N of ...
4
votes
1answer
336 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 ...
3
votes
2answers
1k 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 ...
3
votes
2answers
235 views

Distance between axes and tick labels

A similar question has been axed before in the context of a Framed plot: see here. My plot is unframed so I wasn't able to apply the answer to the other question. I create a histogram with the code ...
3
votes
3answers
65 views

Double differential distribution using set of data

Consider a set of data having the form $\{\{x_{1}, y_{1}\}, …,\{x_{n},y_{n}\}\}$. Each point from the set corresponds to 1 event with coordinate $x, y$. I'm looking for a procedure in Mathematica that ...
3
votes
3answers
397 views

Stacked Histograms for two (or more) datasets, each with its own height specification

For simplicity, lets say I have two histograms ...
3
votes
2answers
146 views

Putting a vertical line in each Histogram using GraphicsGrid

I'm using GraphicsGrid to show several histograms. In each histogram, I would like to show 2 vertical lines on the 2.5 and 97.5 percentiles. If I had an isolated histogram I would use Line, and Show....
3
votes
2answers
378 views

Using image data to create a 3D Histogram

I have a black and white .tiff file of a beam spot: I am trying to characterize the source in a Monte Carlo program, to do this I want to convert the image into a 3D Histogram with controllable bin ...
3
votes
2answers
240 views

Organize the data to set of bins of equal height

Consider the data in the form data = {{1,10},{1,12},...{}}. How to organize this data in the set ...
3
votes
2answers
1k views

Cumulative histogram with log-log scale

How to do a cumulative histogram on Mathematica on a log-log scale? This question is pretty straightforward, but a search didn't help me at all. Keep in mind that all I have is a list of n numbers ...
3
votes
2answers
104 views

Combining a point plot with a histogram

Hi everyone and sorry for my english, I'm new to Mathematica. I have a problem combining points with histograms in Mathematica 12.0. I would like to display a frequency histogram along with points ...
3
votes
2answers
116 views

What's the SmoothHistogram analogue of Histogram[…, BarOrigin -> Left, …]?

By default, Mathematica plots follow the universal convention of making the abscissa (aka x) horizontal and the ordinate (aka y) vertical. Some plot types, however, allow one to specify a different ...
3
votes
2answers
1k views

Vertical Line in Histogram [closed]

I created a histogram of my data. This was working fine. plotbootstrap = Histogram[data, 30] I now also want to add a vertical line for a certain $x$ value (here ...
3
votes
1answer
255 views

ImageHistogram with logarithmic y scale

ImageHistogram is much faster than Histogram with ImageData. The only problem: I cannot ...
3
votes
1answer
2k views

Centering histogram bars over axis values

I'd like to center the bars in my histograms over the correct values of the x-axis. Here is a simplified example: The most common value in the dataset is zero, but glancing at the histogram this isn'...
3
votes
1answer
297 views

How do you make a 3D city population graphic?

I want to make a graphic that has the shape of a country, finds all the cities of that country, gets their coordinates and populations and turns that into a SmoothHistogram3D with the population being ...
3
votes
1answer
131 views

Remove transparency in Histogram

I have the following code, which places the data s1, s2, and s3 on a histogram as shown below. I would like the transparency set ...
3
votes
1answer
321 views

How to compare histograms of two Images?

Is there any function in Mathematica that I can use for comparing the image histogram ? There is a built-in function in OpenCV cv2.compareHist for distance measures ...
3
votes
1answer
2k views

Controlling plot range of histogram

I tried the following code: ...
3
votes
1answer
262 views

Discontinue, then continue x-axis of 2D Histogram

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

How to normalise a line in mathematica

I'm working on creating a line plot from a histogram, as in the following: ...
3
votes
2answers
509 views

Misaligned DensityHistogram, DistributionAxes & PlotRange

data = RandomReal[NormalDistribution[0.5, 0.1], {10000, 2}]; DensityHistogram[data, PlotRange -> 1, Method -> {"DistributionAxes" -> "Histogram"}] The ...
3
votes
1answer
61 views

How to make a histogram showing the frequency of word length?

I have to analyze the novel Don Quixote, so I am trying to make a histogram where each bin is how many characters in a word, and the height being the frequency of words with that many characters.
3
votes
2answers
52 views

Bin arbitrary data using canonical ordering

I have two lists of words, nouns and verbs: ...
3
votes
1answer
2k views

Obtaining a fitting curve from a histogram

Here is a data file containing a small sample of data for play. Now let's create the corresponding histogram ...
3
votes
1answer
198 views

How i can Overlay two histograms [closed]

...
3
votes
2answers
651 views

Creating histograms with specified mean and intervals

I have a set of data that I want to create a histogram for. The thing is, I would like to set the center of the histogram to the mean of the dataset and the intervals to be the standard deviation. How ...
3
votes
1answer
334 views

How to compare Histogram Data?

I'm using a Dataset ...
3
votes
1answer
235 views

How to make custom frame ticks for a Histogram3D plot

I've generated a 3D histogram using the Histogram3D function and I would like to specify the frame ticks. That is, I would like to make custom labels and locations for the rows, columns, and/or ...
3
votes
1answer
478 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 ...
3
votes
1answer
750 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. ...
3
votes
2answers
601 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 ...
3
votes
1answer
188 views

Using bin values and metadata in ChartElementFunction in histograms

The DensityHistogram command lets you specify a ChartElementFunction which according to the documentation: The arguments ...
3
votes
1answer
89 views

SystemException[“MemoryAllocationFailure”] bug in Histogram/Bincounts

I'd like to share a pernicious problem with BinCounts and therefore also Histogram. The minimized problem is as follows: ...
3
votes
1answer
101 views

DensityHistogram's density as function of other variables

DensityHistogram has a function hf, which I believe allows you to alter what defines the colours (I presume hf stands for height ...
3
votes
1answer
486 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 ...
3
votes
0answers
365 views

Manipulate Histogram [closed]

I want to draw a histogram from weighted data, with two sliders to mark a lower and an upper limit on the x-axis. The bins between these two limits should be colored differently from the rest of the ...
3
votes
0answers
756 views

Making a histogram with a log scale

Sorry for my poor english. I am really new in Mathematica. I have a data set and plot it in histogram, The whole script is following: ...
3
votes
0answers
112 views

AbsoluteOptions of a Histogram with PlotRange [duplicate]

Possible Duplicate: Mathematica: Retrieving PlotRange from Histogram I would like to evaluate the AbsoluteOptions of one of my ...
2
votes
1answer
1k views

Combining Histogram and SmoothHistogram

How can we draw Histogram and SmoothHistogram together for two data sets?. I'd like to show the first data set using ...

1 2
3
4 5
7