Adding underscore.
Fixing script path for underscore.
Moving the axes and rule rendering code to a call-once function.