precision for x and y axis, escape $ in ticks, remove %s if label is undefined, use custom ticks%