I'm trying out the xy package and have compiled one of the examples on this website: http://en.wikibooks.org/wiki/LaTeX/Creating_Graphics#Xy-pic
\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[r] & B \\
D & C }
\end{displaymath}
But when I compile the latex code with latex test.tex and look at the resulting test.dvi, I get this:

The arrow pointing to the bottom right looks wrong. How do I fix this?
EDIT: Here's the full latex code:
\documentclass[12pt]{article}
\usepackage[all]{xy}
\begin{document}
\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[r] & B \\
D & C }
\end{displaymath}
\end{document}

.dvifile into a.psfile usingdvips testin a terminal, or compile withpdflatexdirectly. – Gonzalo Medina Aug 25 '11 at 13:23