detect and remember the graph ticks that correspond to the min and max pH values