<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
<!--
body{margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;}
-->
</style>
</head>
<body marginleft="10" marginright="10" margintop="10" marginbottom="10">
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">I would like to get the x- and y-coordinates from a node.</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">I found the correspondence here</font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;"><a href="http://tug.org/pipermail/pstricks/2006/003965.html" target="_blank">http://tug.org/pipermail/pstricks/2006/003965.html</a></font></div>
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">but it doesn't seem to work?</font></div>
<br />
<div align="left" style="text-align:left;"><font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;">Poul Riis</font></div>
<br />
<br />
<div align="left" style="text-align:left;"><font face="Courier" size="+0" color="#000000" style="font-family:Courier;font-size:12pt;color:#000000;">Martin Sievers wrote:><i> I ask for your help for the following problem: I want to plot two</i>><i> function f,g on [xmin,xmax] which have an intersection point S=(s1,s2).</i>><i> The tricky thing about it is, that I want to plot the functions</i>><i> differently on [xmin,s1] and [s1,xmax], for example red and blue.</i>><i> As I only know S, but not the coordinates s1 and s2 themselves, I wonder</i>><i> how I can achieve that.</i>it's possible, but only on PS side</font></div>
<div align="left" style="text-align:left;"><font face="Courier" size="+0" color="#000000" style="font-family:Courier;font-size:12pt;color:#000000;">Herbert</font></div>
<div align="left" style="text-align:left;"><font face="Courier" size="+0" color="#000000" style="font-family:Courier;font-size:12pt;color:#000000;">\documentclass{scrbook}\usepackage[ngerman]{babel}\usepackage[latin9]{inputenc}\usepackage[T1]{fontenc}\usepackage[prologue,dvipsnames,showerrors]{pstricks}\usepackage{pst-plot}\usepackage{pst-node}\usepackage{pst-eucl}\usepackage{pstricks-add}\makeatletter\def\getXfromNode#1{%   </font><a href="http://tug.org/mailman/listinfo/pstricks"><font face="Courier" size="+0" style="font-family:Courier;font-size:12pt;">tx at NodeDict</font></a><font face="Courier" size="+0" color="#000000" style="font-family:Courier;font-size:12pt;color:#000000;"> begin /N@#1 load GetCenter end   pop \</font><a href="http://tug.org/mailman/listinfo/pstricks"><font face="Courier" size="+0" style="font-family:Courier;font-size:12pt;">pst at number</font></a><font face="Courier" size="+0" color="#000000" 
style="font-family:Courier;font-size:12pt;color:#000000;">\psxunit div }\makeatother\begin{document}\begin{pspicture}(0,0)(12,8)\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}\pstInterFF{25 Euler x neg 0.25 mul exp mul}{10 Euler x neg 0.1 mul
expmul}{6}{S}\psplot[plotpoints=200]{0}{\getXfromNode{S}}{25*Euler^(-0.25*x)}\psplot[plotpoints=200]{0}{\getXfromNode{S}}{10*Euler^(-0.1*x)}\psplot[plotpoints=200,linestyle=dashed]{\getXfromNode{S}}{7}{25*Euler^(-0.25*x)}\psplot[plotpoints=200,linestyle=dashed]{\getXfromNode{S}}{7}{10*Euler^((0.25-0.1)*x)}\end{psgraph}\end{pspicture}\end{document}</font></div>
<br />
<br />
</body>
</html>