Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
typesig should be D[]