grid and axes improvements

Some improvements to grids and axes.