# Why are these two histograms plotting so differently?

I have two lists, which are pretty similar. They are given by:

list1=Flatten[Table[#[], #[]] & /@ {{1, 2},{2, 9},{3, 3},{4,73},{5, 38}}]
list2=Flatten[Table[#[], #[]] & /@ {{1, 2},{2, 10},{3, 8},{4,65},{5, 22}}]


ie. list1 is a list of 2 1's, 9 2's, 3 3's, etc.

If I plot a histogram of them next to each other they come out like this:

{Histogram[list1],Histogram[list2]} And I can't figure out why the labelling is different. I would like to have all of my numbers in the centre of the column, so tried using the answer from this question. as so:

{Histogram[list1,
Ticks -> {{# + .5, #} & /@ HistogramList[list1][], Automatic}],
Histogram[list2,
Ticks -> {{# + .5, #} & /@ HistogramList[list2][], Automatic}]}


But that comes out like this: Any idea what's going on?

• The definitions for the lists can be shortened to list1 == Flatten[Table @@@ {{1, 2}, {2, 9}, {3, 3}, {4, 73}, {5, 38}}] and list2 = Flatten[Table @@@ {{1, 2}, {2, 10}, {3, 8}, {4, 65}, {5, 22}}] – Bob Hanlon Aug 10 '20 at 22:59 • @JonathanShock Try {Histogram[list1, {1}], Histogram[list2, {1}]}. – Rohit Namjoshi Aug 10 '20 at 22:37
• @JonathanShock I can reproduce the difference on 12.0.0.0. HistogramList, which is what Histogram uses to compute the bin delimiters and counts, generates different output on 12.0.0.0 for list1. Guess it is a bug that was fixed in 12.1.0.0. – Rohit Namjoshi Aug 11 '20 at 0:52