23 votes

Removing a histogram's vertical edges

I think you could achieve what you want by overlaying two Histogram objects, one with no Edges but colored bars, the second one with Edges, but transparent bars, as ...
  • 64.1k
17 votes
Accepted

Removing a histogram's vertical edges

The underlying problem is that Histogram creates a set of Rectangles which represent the bars. You can inspect this by looking ...
  • 112k
17 votes
Accepted

Can Mathematica achieve this diagram?

Here's a similar figure with made-up data: ...
  • 226k
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 ...
  • 356k
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 ...
  • 231k
15 votes
Accepted

How to plot paired smooth histogram/distribution plots?

Here is something using a custom ChartElementFunction ...
  • 10.8k
15 votes
Accepted

Constructing a ternary histogram

...
  • 356k
14 votes

Histogram of a very large dataset?

I just so happen to have a 4GB data file laying around, so I thought I might give this a try. My data file has one floating point number per line and the number of lines is ...
  • 65.8k
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....
  • 7,036
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" ...
  • 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 ...
  • 18.3k
12 votes
Accepted

Scale SmoothHistogram curve to Histogram

If you really want to, you can scale up from the "PDF". The "scaling" factor depends on how the Histogram was binned, but we can use HistogramDistribution to ...
  • 10.8k
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 ...
  • 356k
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 ...
  • 929
11 votes
Accepted

How to normalize histogram height to unity?

You can use your own normalization function Histogram[RandomReal[NormalDistribution[], 1000], Automatic, #2/Max@#2 &]
  • 43.2k
11 votes
Accepted

Random Variate generating strange results when using ProbabilityDistribution

There seems to be a bug in version 10.1 that has been fixed in 10.3. You can always try writing your own random number generator. Here is a simple acceptance rejection method based on generalized ...
  • 19k
11 votes

Bar chart scale in multi-chart visualisation

Histogram does not support a grouped ChartLayout. Hence the workaround using BarChart: I'...
  • 356k
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 ...
  • 64.1k
10 votes

Histogram3D with various colors and textures on cuboids' faces

For some reason those lines are created during the rasterization of the thing inside Texture: ...
  • 5,159
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 ...
  • 65.8k
10 votes
Accepted

Weighted smooth histogram

SeedRandom[1] data = Transpose[{RandomReal[10, 100], Normalize @ RandomReal[1, 100]}]; Try WeightedData: ...
  • 356k
10 votes
Accepted

Histogram as scatter plot

You can use ChartElementFunction -> "Point" to get a histogram as a scatter plot in one step: ...
  • 356k
10 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 ...
  • 64.1k
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 ...
9 votes
Accepted

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

While not a Bar Chart per se, I usually prefer to use the result from HistrogramList directly with ListPlot and then join the ...
  • 3,284
9 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 ...
  • 37.1k
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: ...
  • 356k
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 ...
  • 37.1k
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 ...
8 votes

Removing a histogram's vertical edges

You can also Plot the scaled PDF of the HistogramDistribution of ...
  • 356k

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