You could also just swap the x- and y-axes. <br> <br> Martijn Frijlink<br> <br><b><i>"Dougherty, Michael" &lt;michael.dougherty@swosu.edu&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Use the parametric plot and have the function be the y-value.  Where you originally graphed with <br>\psplot{xmin}{xmax}{f(x)}<br>now you do<br>\parametricplot{tmin}{tmax}{f(t) t}<br>It knows that there will be two outputs, kind of like a stack that ends up with two entries after all the unary and binary operations.<br><br>For an example, let me be lazy and copy something from a book I'm writing, where you have sin x and arcsin x graphed together. I probably could take some shortcuts but it's what I have on file.<br><br>--Mike Dougherty<br><br>\begin{pspicture}(-2,-4)(2,4)<br>\psset{yunit=.5cm}<br>\psaxes[Dy=20]{&lt;-&gt;}(0,0)(-2,-8)(2,8)<br>\parametricplot[linecolor=gray,%<br>plotpoints=2000]{-8}{8}{t 180
 mul 3.14159265 div sin t}<br>\parametricplot[plotpoints=100,linewidth=2pt]%<br>{-1.5708}{1.5708}{t 180 mul 3.14159265 div sin t}<br>\psline(-.2,-3.1415)(.2,-3.1415)<br>\psline(-.2,3.1415)(.2,3.1415)<br>\rput[l](.3,-3.1415){$-\pi$}<br>\rput[l](.3,3.1415){$\pi$}<br><br>\psline(-.2,-6.28)(.2,-6.28)<br>\psline(-.2,6.28)(.2,6.28)<br>\rput[l](.3,-6.28){$-2\pi$}<br>\rput[l](.3,6.28){$2\pi$}<br>\pscircle[fillcolor=black,fillstyle=solid](1,1.5708){.07}<br>\pscircle[fillcolor=black,fillstyle=solid](-1,-1.5708){.07}<br>\end{pspicture}<br><br><br><br>-----Original Message-----<br>From: pstricks-bounces@tug.org on behalf of Thushyanthan Baskaran<br>Sent: Sun 6/11/2006 1:36 PM<br>To: pstricks@tug.org<br>Subject: [pstricks] drawing inverses<br> <br><br><br>Hi,<br><br>I would like to draw a function and its inverse together on a graph. <br>However, since my original function cannot be solved explicitly for the <br>dependent variable, I do not have an explicit function that I could use
 <br>with psplot. Is there any other solution for drawing inverses?<br><br>Many thanks in advance,<br><br>Thushy Baskaran<br>_______________________________________________<br>pstricks mailing list<br>pstricks@tug.org<br>http://tug.org/mailman/listinfo/pstricks<br><br>_______________________________________________<br>pstricks mailing list<br>pstricks@tug.org<br>http://tug.org/mailman/listinfo/pstricks<br></blockquote><br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com