[pstricks] inverse function

Richard Hensh hensh at math.msu.edu
Thu Aug 2 20:21:57 CEST 2007


Try \swapaxis inside a \pscustom command.

\def\xmin{-6}\def\xmax{6}
\def\ymin{-6}\def\ymax{6}
\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)
\psset{unit=6mm}
\pstVerb{%
    }
\SpecialCoor
\psaxes{<->}(0,0)(\xmin,\ymin)(\xmax,\ymax)
\psclip{\myframe(\xmin,\ymin)(\xmax,\ymax)}
    \pscustom[linecolor=blue,linewidth=1.25pt]{%
    \swapaxes %
    \psplot[linestyle=dashed]{\xmin}{\xmax}{%
        x dup mul}
    }
\endpsclip
\NormalCoor
\end{pspicture} 


hth,
ricky

-----Original Message-----
From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On Behalf
Of Cyrille Piatecki
Sent: Thursday, August 02, 2007 10:29 AM
To: pstricks at tug.org
Subject: [pstricks] inverse function

Pstricks plot perfectly y = f(x). But is there a way to plot x = f^{-1}(y)
directly without use ImplicitPlot or by outside generation of the datas ?

Thanks

Cyrille Piatecki

_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks




More information about the PSTricks mailing list