[pstricks] coordinates of nodes

Christophe Jorssen jorssen.leraincy at free.fr
Tue Mar 16 23:37:45 CET 2004


> 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 can try

\makeatletter
\pst at getcoor{<name of the node>}\pst at tempa
\pst at getcoor{<name of the other node>}\pst at tempb

then you can draw a line with

\SpecialCoor
\psline(!%
    \pst at tempa 2 1 roll
    \pst at number\psxunit div
    \pst at number\psyunit div)(!%
    \pst at tempb 2 1 roll
    \pst at number\psxunit div
    \pst at number\psyunit div)

Best regards

Kristof



More information about the PSTricks mailing list