I am trying to type the following simple commutative diagram in LaTeX. I have the basics, but I need for the V to be centered, and for the arrow under the g to be in the opposite direction.
\begin{tikzpicture}[every node/.style={midway}]
\matrix[column sep={4em,between origins},
row sep={2em}] at (0,0)
{ \node(X) {$X$} ; & \node(Y) {$Y$}; \\
\node(V) {$V$}; \\};
\draw[<-] (V) -- (X) node[anchor=east] {$h$};
\draw[->] (V) -- (Y) node[anchor=north] {$g$};
\draw[->] (X) -- (Y) node[anchor=south] {$f$};
\end{tikzpicture}

\draw[->] (Y) -- (V)instead of\draw[->] (V) -- (Y). Also, theVnode is centered, so perhaps just increasing the length of the line a bit by addingshortenoption as in\draw[->, shorten >=-0.5ex] (Y) -- (V)makes it look more centered. – Peter Grill Jan 01 '13 at 19:56