<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Herbert Voss schrieb:
<blockquote cite="mid44E2AA8E.20507@zedat.fu-berlin.de" type="cite">
  <pre wrap="">Martin Sievers wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I ask for your help for the following problem: I want to plot two
function f,g on [xmin,xmax] which have an intersection point S=(s1,s2).
The tricky thing about it is, that I want to plot the functions
differently on [xmin,s1] and [s1,xmax], for example red and blue.
As I only know S, but not the coordinates s1 and s2 themselves, I wonder
how I can achieve that.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
it's possible, but only on PS side

Herbert

\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{%
   tx@NodeDict begin /N@#1 load GetCenter end
   pop \pst@number\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}{-&gt;}(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 exp
mul}{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}


_______________________________________________
pstricks mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pstricks@tug.org">pstricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>


  </pre>
</blockquote>
Thank you Herbert. I was quite sure that there is a PS-solution, but
couldn't find it. I guess I should really read the ps-manual closely
for further problems as ps sometimes is the only way to do special
things.<br>
<br>
Bye<br>
Martin<br>
</body>
</html>