axis_loc: Calculate pretty locations of axis tick marks
Description
The pretty locations are calculated by the function
pretty, but the locations that exceed the
range of the data are removed. A special case is the factor: the
locations are 1, 2, ..., up to the number of levels.