Custom tick generation

Add functionality to provide custom tick generator for quantitative scale.

Close #1058.
The fact that you're using the second variable in the "common usecase" function seems like a huge warning flag that the function arguments are poorly ordered/defined.