17 votes
Accepted

Can Mathematica achieve this diagram?

Here's a similar figure with made-up data: ...
Michael E2's user avatar
  • 236k
16 votes
Accepted

Histogram with Error bars

For the case where the height function is "Count", we can use the formula from the linked page in a custom ChartElementFunction ...
kglr's user avatar
  • 395k
15 votes

Is there a way to make a bihistogram plot?

data1 = RandomVariate[NormalDistribution[0, 1], 1000]; data2 = RandomVariate[NormalDistribution[0.3, 1], 1000]; One way is ...
Szabolcs's user avatar
  • 235k
15 votes
Accepted

How to plot paired smooth histogram/distribution plots?

Here is something using a custom ChartElementFunction ...
chuy's user avatar
  • 11.2k
15 votes
Accepted

Constructing a ternary histogram

...
kglr's user avatar
  • 395k
13 votes
Accepted

Coloring the bars greater than a certain value in a histogram

Ideally you could have used the ColorFunction option, but sadly for Histogram it seems that it only takes the height as an input....
yohbs's user avatar
  • 7,046
13 votes
Accepted

Histogram "PDF" vs "Probability"

I believe that when you specify "PDF", the value on the ordinate is the average probability density within a given bin. And to get the "within-this-bin" ...
user15994's user avatar
  • 509
13 votes
Accepted

Tuples optimization challenge

Don't use brute force, instead compute probabilities for each amount of leading zero bits in OrderDistribution for the smallest entry of ...
kirma's user avatar
  • 19.1k
11 votes

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

You can already achieve this using Histogram. No need to fuss with ListPlot. Use these forms for the second and third arguments ...
hftf's user avatar
  • 949
11 votes

How can I make a list plot with bars?

BarChart Although OP says "I don't want a BarChart", the requirements of list plot with drop down columns/bars (overlapping bars/columns) can be achieved using ...
kglr's user avatar
  • 395k
11 votes

Bar chart scale in multi-chart visualisation

Histogram does not support a grouped ChartLayout. Hence the workaround using BarChart: I'...
kglr's user avatar
  • 395k
11 votes
Accepted

Weighted smooth histogram

SeedRandom[1] data = Transpose[{RandomReal[10, 100], Normalize @ RandomReal[1, 100]}]; Try WeightedData: ...
kglr's user avatar
  • 395k
11 votes
Accepted

Why aren't CirclePoints[] evenly distributed?

I's say a combination of your code not using an accurate value for Pi/2 and of the automatic binning for Histogram. See the ...
MarcoB's user avatar
  • 67.2k
11 votes

How to generate a horizontal histogram with words?

First of all, you don't need a Histogram, you need BarChart. Secondly, you need to massage the data slightly so each data point ...
MarcoB's user avatar
  • 67.2k
10 votes

Box plot combined with histogram and normal curve

This is very similar to Quantum_Oli's answer, but I will post it anyway. It use's a modified version of Jens's plotGrid function to do the work of combining the ...
Jason B.'s user avatar
  • 68.4k
10 votes

Plot a sequence of histograms?

When you have lots of data, you should consider using SmoothKernelDistribution or SmoothHistogram as I'm assuming that you must ...
JimB's user avatar
  • 41.7k
9 votes

Finding the best way to visualize rather complicated data

The data in the question presents a good case for visualization with Chernoff faces. For that data, actually, the Chernoff faces work "out of the box" pretty well! Make faces Load Chernoff faces ...
Anton Antonov's user avatar
9 votes

Distance between axes and tick labels

You can use Framed on the tick labels and control the margins around the labels with the option FrameMargins: ...
kglr's user avatar
  • 395k
9 votes
Accepted

Histogram as scatter plot

You can use ChartElementFunction -> "Point" to get a histogram as a scatter plot in one step: ...
kglr's user avatar
  • 395k
9 votes
Accepted

Fit function to histogram

It is rare than anyone should use a regression function such as NonlinearModelFit to estimate the parameters of a histogram (constructed from a random sample from ...
JimB's user avatar
  • 41.7k
8 votes

How to make a multi-peak histogram fitting

You can write Expectation-Maximization algorithm for Gaussian Mixture Models. It is very easy. Let's consider the case with 3-modal Gaussian distribution, the extension to the arbitrary number is ...
Svyatoslav Korneev's user avatar
8 votes

Box plot combined with histogram and normal curve

It is indeed possible, although not necessarily straightforward. The method I present below gives a pretty robust and accurate way of lining up plots, the downside is a little bit of code and having ...
Quantum_Oli's user avatar
  • 7,964
8 votes

Bar chart scale in multi-chart visualisation

Rather than Show, you can use Prolog + Inset with Scaled:...
Virgil's user avatar
  • 3,437
8 votes

Histogram Bar Line Thickness

The most direct and versatile way would be to generate your own chart elements. Fortunately, for rectangles this is quite easy: ...
MarcoB's user avatar
  • 67.2k
8 votes

Histogram Bar Line Thickness

You are looking to modify the EdgeForm of your ChartStyle, and this is shown in the documentation for ...
Jason B.'s user avatar
  • 68.4k
8 votes

How to plot paired smooth histogram/distribution plots?

Update: Using GeometricTransformations to post-process SmoothHistogram outputs: ...
kglr's user avatar
  • 395k
8 votes

How to plot paired smooth histogram/distribution plots?

I just followed your approach but rather created tables of the density and associated x-values. I added a shift parameter to ...
JimB's user avatar
  • 41.7k
8 votes

Plot a sequence of histograms?

data1 = RandomVariate[NormalDistribution[0, 1], 500]; data2 = RandomVariate[NormalDistribution[1, 1/2], 500]; data3 = RandomVariate[NormalDistribution[2, 2], 500]; ...
kglr's user avatar
  • 395k
8 votes
Accepted

No values shown in histogram with "mouse-over"

Adding the option LabelingFunction -> Tooltip fixes the problem. If the number of bins exceeds 25, LabelingFunction option ...
kglr's user avatar
  • 395k
8 votes
Accepted

Datasets and Time Values: Filtering and Plotting

Q1: You can use Quantity[20, "Minutes"] as the bin specification: ...
kglr's user avatar
  • 395k

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