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

learn more… | top users | synonyms

1
vote
2answers
57 views

Easy way to create an histogram with given heights? [on hold]

What is the easiest way to create an histogram with the heights of each bin already determined? I read all the support page on histograms but I don't understand if there is a way to create an ...
3
votes
2answers
48 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: ...
1
vote
1answer
57 views

Controlling plot range of histogram

I tried the following code: ...
1
vote
1answer
80 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 ...
3
votes
1answer
84 views

ImageHistogram with logarithmic y scale

ImageHistogram is much faster than Histogram with ImageData. The only problem: I cannot ...
0
votes
1answer
107 views

Histograms of gray scale images

I have a large set of subsequent 8bit gray scale png images (50 Hz). They show the noise of a CMOS camera, with the lens covered. A subset of 50 images is available here: https://goo.gl/Sa3P9P I ...
2
votes
5answers
111 views

Histogram from relative frequency data;

I've got a data set similar to the first and fourth column of this table http://mathworld.wolfram.com/FrequencyDistribution.html where the first column is the midpoint of a fixed range of values ...
2
votes
1answer
109 views

Random Variate generating strange results when using ProbabilityDistribution

I have created a probability distribution that follows a general normal distribution, given by: $$ \frac{b *e^{-\left(\frac{\sqrt{(x-u )^2}}{a }\right)^{b }}}{2 a \Gamma \left(\frac{1}{b }\right)} ...
1
vote
1answer
37 views

Histogram “PDF” - Workaround for chopped y axis [closed]

My question is about finding a workaround and/or setting of parameters for a problem with the Histogram function and the "PDF" option. This problem occurs when I use Mathematica (Wolfram Cloud ...
1
vote
3answers
88 views

Polar histogram and bins

I have a list of polar coordinate points: list = Transpose[Join[RandomReal[{1, 60}, {1, 100}], RandomReal[{0, 2 Pi}, {1, 100}]]] I need to divide the ...
2
votes
1answer
39 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 ...
4
votes
3answers
225 views

Histogram of a very large dataset?

I have a very large dataset stored in a file (over 2GB). The file contains a tab-separated table of floating-point numbers. I want to do an Histogram of all the numbers in the table. But if I try to ...
1
vote
1answer
95 views

Plotting probabilistic histogram on a specific range on log scale

I'm having a problem getting a combined effect - I have a list of values for which I'd like to plot a histogram. As a minimal example: ...
0
votes
1answer
105 views

Plotting two variables indirectly dependent on each other

I have the following system of linear ODEs for "i" number of species "c" migrating in "j" number of habitats: ...
3
votes
1answer
79 views

How to normalize histogram height to unity?

When doing Histogram[data], I get the total nummber of counts in each bin. Doing Histogram[data,Automatic,"Probability"] ...
1
vote
0answers
45 views

What is the meaning of the Legend values for DensityHistogram and SmoothDensityHistogram? [closed]

I generate some random 2D data points, then look at the histogram in three different ways. ...
14
votes
3answers
350 views

Histogram3D with various colors and textures on cuboids' faces

I'm trying to produce an Histogram3D-like graph, but with a little more customization. In particular I want to manually specify the color of each cuboid and to print some information on the top ...
5
votes
1answer
73 views

Remove Tick Marks without removing Numbers on Paired Histogram

I have formatting problem that I can't figure out. I'm trying to remove the tick marks on a paired histogram without removing the numbers. The trick with other plots is to make the opacity of the ...
6
votes
2answers
106 views

Scale SmoothHistogram curve to Histogram

Like in this question, I would like to display a histogram and a smooth histogram in the same plot. I believe the default “bin height specification” (or $\textit{hspec}$) for ...
0
votes
2answers
89 views

How to make an Histogram where the data are strings? [duplicate]

Histogram[{3, 3, 2, 2, 2, 2, 2, 1, 1}] works great to give you an histogram in which mathematica counts the occurence of each number and makes the plot. Is there a ...
7
votes
2answers
84 views

How to generate a Log BarLegend for a DensityHistogram

I have a Log count histogram: DensityHistogram[myData, 100, {"Log", "Count"}, ColorFunction -> "Rainbow", ChartLegends -> Automatic] But ...
1
vote
1answer
138 views

How to create a vertical (smooth) Histogram on the y-axis of a function graph for an uncertain x?

This is my first time posting a question in StackExchange. I have encountered a certain problem and I can't seem too find a solution. Just a word of caution, I am kind of an amateur when it comes to ...
1
vote
1answer
41 views

Histogram and Random Lists [closed]

Suppose I have the following list listrand of random numbers from RandomReal[-30,30] (where the size of the list is 40). Is ...
0
votes
1answer
64 views

pass fail criteria as legend in histogram and plot

I have a random data and want to plot the histogram with specific bin ranges. Each value of data[[x]] is actually [(data[[x]]*2.2)/4] with units as microns; where 4 is the magnification of microscope ...
1
vote
1answer
156 views

How to make a cumulative time plot?

So I'm working with this data set where there is just one input(a date and time) per line in a .csv file. I've let Mathematica understand the input using "DateStringFormat". The time looks like ...
0
votes
2answers
130 views

Plot a histogram according to a set of rules using data from two tables

Let's say I have two Tables A={1.0,2.3,1.5,3.0,1.1,} , B={2,10,3,1,0} and I'd like to plot a histogram in the following way: ...
4
votes
2answers
355 views

How can I plot histogram with the same number of values in every bin?

For example I have 100 values sample. I'd like to build histogram in which every bin contains, for example, 10 values. How can i do that? Thanks.
3
votes
1answer
191 views

How to create a bar chart from a list of heights *and* bin delimiter positions?

Basically, I'm trying to produce the same output that Histogram[giganticList] would produce, but starting from the output of ...
21
votes
5answers
708 views

Removing a histogram's vertical edges

Let's say I have a histogram: Histogram[RandomVariate[NormalDistribution[10, 2], 500]] How can I remove vertical lines inside the histogram and keep only the ...
3
votes
2answers
247 views

Plot contours for 3d histograms

I have a data set which is a list of pairs. From this I can easily make a 3d histogram with Histogram3D[data] or a smoothed ...
4
votes
3answers
201 views

Translating Histogram

SeedRandom[1]; RandomVariate[NormalDistribution[], 100]; Histogram[%, Automatic, "Probability"] The above code produces a histogram like I want to translate ...
0
votes
1answer
96 views

Frequency curve for discrete data

I have a huge array of matrices that looks like this ...
2
votes
1answer
184 views

Dual Axis Histogram

I'd like to plot two histograms on top of one another, but they have very different scales. Is it possible to plot a histogram with two y-axes, similar to the custom function found here for plots?
0
votes
1answer
151 views

What happened with good old Histogram?

For the sake of demonstration in a class I wanted to use the line: Histogram[Accumulate[RandomReal[{-1, 1}, 100000]], {1}, "Probability"] to get a ...
2
votes
2answers
126 views

Dynamic visualization of two histograms

I have two histograms histo1 and histo2: ...
2
votes
2answers
300 views

How can I get Histogram to show the number of elements in its bins?

I'm just using Histogram[data, 50]. All the examples on the Histogram help page show show the number of elements when the cursor ...
1
vote
2answers
156 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 ...
2
votes
2answers
82 views

How to get the number of entries of histograms in the legend?

I plot three histograms (originating from a large Dataset ds) in one graph ...
1
vote
1answer
122 views

Histogram 3D: use different bin width in two directions

I'm trying to plot an histogram of a set of data, I would like to use a bin of different width in x and y direction. I've tried using the following two codes: ...
1
vote
1answer
59 views

How do I plot 3 (x,y,value) on a Histogram3D[] function?

I have been trying to plot data using the Histogram3D function but I've had no luck, in excel I have x, y and a value I want to plot for each pair, do I have to save this as a data file first? I have ...
1
vote
1answer
84 views

How can I plot a 3D graph that shows how a histogram varies with a particular parameter?

How can I plot a 3D graph that shows how a histogram varies with a particular parameter? A simple example of this would be plotting a histogram of data described by a gaussian. The gaussian is of ...
0
votes
0answers
105 views

map of Europe as histogram

I want to make a histogram using the map of Europe, such as this or similar: thanks to all
4
votes
1answer
149 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 ...
2
votes
4answers
1k views

How to create a histogram from a given frequency table

I wanted to draw a histogram as in the photo above, I typed the command: ...
3
votes
1answer
324 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 ...
6
votes
3answers
415 views

Polar histogram

I am developing an algorithm to generate a descriptor of a 2D object based on polar histogram. suppose that we have a datalist centered in {cx,cy}. I use 36 bins where I consider 12 angles and 3 ...
3
votes
1answer
213 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 ...
2
votes
2answers
389 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 ...
1
vote
0answers
97 views

Setting `ChartLabels` in a histogram

I have two data sets that I use to build a histogram in the following code: ...
3
votes
1answer
168 views

How to compare Histogram Data?

I'm using a Dataset ...