Use axis view limits to control which ticks are labeled.
The locs parameter is ignored in the present algorithm.