[pstricks] coordinates of nodes
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Wed Mar 17 06:48:29 CET 2004
John Frampton wrote:
> I have a diagram with several nodes at different heights, and a
> horizontal line below all of the nodes. I would like to draw
> vertical lines from the nodes to the horizontal line. If I could
> recover the coordinates of a node, the problem would be solved.
> Is that possible? Is there another way to solve the problem?
you could try SpeicalCoor
Herbert
\documentclass[12pt,a4paper]{article}
\usepackage{pst-node}
\SpecialCoor
\begin{document}
\pnode(0,0){l1}\pnode(5,0){l2}
\pnode(0,4){A}\pnode(2,3){B}\pnode(3,1){C}\pnode(4,4){D}
\psline(l1)(l2)
\psset{linecolor=red}
\psline(A)(A|l1)\psline(B)(B|l1)\psline(C)(C|l1)\psline(D)(D|l1)
\end{document}
--
http://www.pstricks.de/
More information about the PSTricks
mailing list