Refactor jpgraph. prepareScale
Refactor jpgrapher. prepareAxis
Refactor jpgrapher. prepareGrid