The 3D viewing volume is controlled by glOrtho.
This is an axis-aligned box containing the region to be drawn.
glOrtho(left, right, bottom, top, near, far)
Note that near and far can be confusing - they are the negatives of the Z values for the corresponding planes.
glOrtho(-5, 8, -4, 4, -1, 3)