Made the grid lines optional for X, and Y axes.