Add scientific notation to color legend. Changed and consolidated formatting logic across axes into new function.