building a grid with irregularly spaced axes