top ticks for hist1d

and change allowing to change maximum number of ticks. 
This was useful/important for me when making this plot (https://www.dropbox.com/s/knvs9fxvue10k04/trianglpy_test.pdf?dl=0), hope this is useful for other people.