I believe there is a discrepancy here in the example with rainfall. The description doesn’t match the picture and the code provided. Could someone else give me feedback on this ? Did I miss something?
I believe the right midpoint to be 1.6/2, 0.8, so x2.
Blockquote The x-tick labels (the ones that say 2000, 2001, 2002, etc) were placed at each midpoint of the two bars. How did we calculate those x-values? The midpoint of 0.0 and 0.8 is 0.4, so that’s where the first tick should be. The midpoint of 2.0 and 2.8 is 2.4, so that’s where the second tick should be. Using a list comprehension: