[pstricks] Drawing S- and Z-Curves
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sun Apr 26 08:51:58 CEST 2009
Rich Shepard schrieb:
> Thank you very much. I have been unsuccessful looking for documentation on
> how to use the algebraic option for \psplot. Trying to emulate the Gaussian
> plot example on the PSTricks example pages, but without the embedded PS, my
> latest attempt is here:
>
> \rput[lb](1,0.75){$\sigma =0.5$}
> % a=0.0 b=2.0 m=1.5 v=0.5
> \psplot[algebraic]{0.0}{2.0}{Ex(-(x-3.0)^2/0.5)}
Rich,
you can also use the Gauss macro from pst-func
Herbert
\documentclass{article}
\usepackage{pst-func,pstricks-add}
\usepackage{amsmath}
\pagestyle{empty}
%
\begin{document}
\psset{yunit=4cm,xunit=2cm}
\begin{pspicture}(-1,-.5)(2.5,1)
\psset{plotpoints=500,labelFontSize=\footnotesize,mathLabel=false}
\rput(1,0.75){$\sigma =0.5$}
% a=0.0 b=2.0 m=1.5 v=0.5
\psplot[algebraic]{0}{2}{Ex(-(x-1.0)^2/0.5)}
\psaxes{->}(0,0)(-1,0)(2,1)[x,-90][y,0]
\end{pspicture}
\begin{pspicture}(-1,-.5)(2.5,1)
\psset{plotpoints=500,labelFontSize=\footnotesize,mathLabel=false}
\rput(1,0.75){$\sigma=0.5$}
\psGauss[yunit=1.253,sigma=0.5,mue=1]{0}{2}
\psaxes{->}(0,0)(-1,0)(2.5,1)[x,-90][y,0]
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list