New answers tagged

2

BarChart is the right approach to view this kind of data. If you have to use Histogram for some reason, here is how you can use it heights = {8.5, 9.2, 10.4, 9.3, 8.9}; labels = {"0-20", "20-40", "40-60", "60-80", "80-100"}; hist = Histogram[{1}, {Range[0, 100, 20]}, (heights &), ChartStyle -> 1, Ticks -> {Thread[{Range[10, 100, 20], labels}], ...


4

This doesn't sound like an application for Histogram, because you are not providing the underlying data. It sounds like you are looking for a labeled bar chart. You can achieve this using BarChart and the ChartLabels options. For example: BarChart[{8.5, 9.2, 10.4, 9.3, 8.9}, ChartLabels -> {"0-20", "20-40", "40-60", "60-80", "80-100"}, AxesLabel -> ...


14

data1 = RandomVariate[NormalDistribution[0, 1], 1000]; data2 = RandomVariate[NormalDistribution[0.3, 1], 1000]; One way is PairedHistogram PairedHistogram[data1, data2] A different layout can be achieved by hacking the height specification of Histogram. Show[ Histogram[data1, Automatic], Histogram[data2, Automatic, -#2 &] ] Update In ...



Top 50 recent answers are included