Rescaling bad counts axis automatically (with min 20)
Sorted lists of data before plotting. Added regions to make viewing code easier.