Matrix Stack Question

I think I understand the matrix stack.
However, this produces a result that confuses me.

>code<

I think it should: create a spiral, then create a grid in an independent coordinate system
However, it does this: spiral followed by a tiny grid at the end

Also, when I move the glBegin and glEnd calls to the outside of the loops, it only displays one point.