added ability to format x and y axis independently