code: def getTotalExpectedOccurrencesTicks_2_5(ticks):
    
    locs = [loc
            for label, loc in ticks]
    labels = [(str(label + 1) if
               (label + 1 == 2
               or (label+1) % 5 == 0)
               else "")
              for label, loc in ticks]
    return locs, labels
docs: Extract a set of tick locations and labels. The input ticks are assumed to
    mean "How many *other* occurrences are there of the sensed feature?" but we
    want to show how many *total* occurrences there are. So we add 1.
  
    We label tick 2, and then 5, 10, 15, 20, ...
  
    @param ticks
    A list of ticks, typically calculated by one of the above generate*List functions.