[pstricks] Get x- and y-coordinate from node

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Sep 23 18:27:21 CEST 2015


Poul Riis schrieb:
> I would like to get the x- and y-coordinates from a node.
> I found the correspondence here
> http://tug.org/pipermail/pstricks/2006/003965.html
> but it doesn't seem to work?

\documentclass{scrbook}
\usepackage[prologue,dvipsnames]{pstricks}
\usepackage{pst-plot}
\usepackage{pst-node}
\usepackage{pst-eucl}
\usepackage{pstricks-add}

\begin{document}

\begin{pspicture}(0,0)(12,8)
\pstInterFF{25 Euler x neg 0.25 mul exp mul}{10 Euler x neg 0.1 mul exp
mul}{6}{S}
\psset{algebraic,comma,llx=-0.75cm,lly=-0.75cm,urx=0.75cm,Dy=5,Dx=1,
      labelFontSize={\footnotesize},xAxisLabel={$t$},yAxisLabel={$p$}}
\begin{psgraph}{->}(0.0,0)(7.25,27){10.50cm}{7.25cm}
\psplot[plotpoints=200]{0}{\psGetNodeCenter{S} S.x}{25*Euler^(-0.25*x)}
\psplot[plotpoints=200]{0}{\psGetNodeCenter{S} S.x}{10*Euler^(-0.1*x)}
\psplot[plotpoints=200,linestyle=dashed]{\psGetNodeCenter{S}
S.x}{7}{25*Euler^(-0.25*x)}
\psplot[plotpoints=200,linestyle=dashed]{\psGetNodeCenter{S}
S.x}{7}{10*Euler^((0.25-0.1)*x)}
\end{psgraph}
\end{pspicture}

\end{document}


Herbert




More information about the PSTricks mailing list