Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
could you give more descriptive names here than `(d,s)`?