Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
why is this `closeTo`?