Added ability to modify x/y axis tics, as well as some minor refactoring
Use a macro for the common pattern of grabbing the first option.