pass function for formatting axis