Refactored the code to draw axes.
Refactored axis labeling code.
Removed unnecessary code that never runs.
Refactored various variables into a dictionary for improved later refactoring.