Possible Duplicate:
Tikz: purely vertical arrow from nodeA.south to nodeB.north
I have two nodes of different widths. I can align their left edges. I would like to draw a line from (the center of) the bottom of one to the top of the other so that the line is vertical. (In the example, I want the (65)--(75) line to line up with the (75)--(85) line. Is there a way to do this other than by guessing at an angle that achieves vertical?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[anchor=west] (65) at (0,0) {$(6,5)=f(5)$};
\node[above=of 65.west,anchor=west] (75) {$(7,5)$};
\node[above of=75] (85) {$(8,5)$};
\draw (65)--(75)--(85);
\end{tikzpicture}
\end{document}
\draw (65.north -| 75)--(75)--(85);what are you looking for? – Qrrbrbirlbel Feb 03 '13 at 00:07(a-|b)means "the point located at the same horizontal level than a, and the same vertical than b". – JLDiaz Feb 03 '13 at 00:15