A simple peak detection algorithm was implemented to identify a y-value that is greater than its neighbours on either side of a peak. To reduce the risk of spurious peak detection, a neighbourhood of 26 values is used by default and the peak also has to be greater than 5% above the average of those values. Depending on the level of zoom, the number of annotations will increase or decrease (Figs. 1 and 2).