allow for tickformat to be a function