How to obtain accurate depth maps using nodes and visualize them?
To visualize the Z depth just use the Normalize node. Normalize will take the lowest and highest values of the image and scale them to be 0 (black) and 1 (white) respectively. All values in between will be scaled linearly as well.
And maybe also enable transparency...