correct range of indices of ticks based on maximum data value for frame
generated by Chaco library