[pstricks] PSTricks Digest, Vol 103, Issue 10

grivet grivet at cnrs-orleans.fr
Tue Aug 16 10:32:59 CEST 2011


Thank you, it works.
I find it strange that "exp" is recognized when using RPN and not 
algebraic; further, I would like to suggest that the next edition of 
pst-plot/doc comprises a list of suppported functions

Hello,

I have a problem with the "exp" function of pst-plot. I have copied a
recent piece of code by Herbert Vosz (from july 7th) and simply changed
a "sin" function for an "exp", thus:

   \documentclass{article}
\usepackage{pst-plot}
\begin{document}

\psset{unit=.8cm,plotpoints=500}
\begin{pspicture}(-1,-3)(11,7)
     \psaxes[arrowscale=2,Dx=20,dx=2,Dy=20,dy=2,subticks=10,
     ,ticklinestyle=dashed,yticksize=0 10,xticksize=-3 7,
     tickcolor=black!50,subtickcolor=black!20,
     subticksize=1]{->}(0,0)(0,-3)(10.5,7.5)[$x$,-90][$y$,180]
     \psplot[linewidth=1.5pt,algebraic,
             linecolor=red]{0}{10}{4*exp(-x/3)+2}
\end{pspicture}

use it this way:

     \psplot[linewidth=1.5pt,algebraic,?
             linecolor=red]{0}{10}{4*Euler^(-x/3)+2}






More information about the PSTricks mailing list