Add functions to expose the x and y scales for external use.