[pstricks] Drawing normal curve

vkanetka at uoguelph.ca vkanetka at uoguelph.ca
Tue Sep 4 06:58:56 CEST 2007


Herbert:

I am using pst-func to draw normal distribution and following example
from documentation. There must be something wrong with my set-up because
I am getting following error message.

%%[ Error: undefined; OffendingCommand: Euler ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

My example and list of files follows:

\listfiles

\documentclass[11pt]{article}
\usepackage{pstricks}
\usepackage{pst-func}
\usepackage{pst-math}
\usepackage{pstricks-add}% for the alg parser

%
\def\pshlabel#1{\footnotesize#1}
\def\psvlabel#1{\footnotesize#1}
%
\begin{document}
\psset{yunit=4cm,xunit=3}
\begin{pspicture}(-2,-0.2)(2,1.4)
%  \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0]
   \psaxes[Dy=0.25]{->}(0,0)(-2,0)(2,1.25)
   \uput[-90](6,0){x}\uput[0](0,1){y}
   \rput[lb](1,0.75){\textcolor{red}{$\sigma =0.5$}}
   \rput[lb](1,0.5){\textcolor{blue}{$\sigma =1$}}
    
\rput[lb](-2,0.5){$f(x)=\frac{1}{\sigma\sqrt{2\pi}}\,e^{-\frac{(x-\mu)^2}{2\sigma{}^2}}$}
   \psGauss[linecolor=red, linewidth=2pt]{-1.75}{1.75}%
   \psGaussI[linewidth=1pt,yunit=0.75]{-2}{2}%
   \psGauss[linecolor=cyan, mue=0.5, linewidth=2pt]{-1.75}{1.75}%
   \psGauss[sigma=1, linecolor=blue, linewidth=2pt]{-1.75}{1.75}
\end{pspicture}
\end{document}

  *File List*
  article.cls    2001/04/21 v1.4e Standard LaTeX document class
   size11.clo    2001/04/21 v1.4e Standard LaTeX file (size option)
pstricks.sty    2006/08/10 v0.32 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2006/12/22 v1.15 `PSTricks' (tvz)
   xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
    color.cfg
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-func.sty    2006/04/22 package wrapper for pst-func.tex (hv)
pst-func.tex    2007/08/27 v0.50 `PST-func' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  xkeyval.sty    2005/11/25 v2.5e package option processing (HA)
  xkeyval.tex    2005/11/25 v2.5e key=value parser (HA)
pst-math.sty    2004/03/20 package wrapper for PSTricks pst-math.tex
pstricks-add.sty    2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks-add.tex    2007/08/27 v0.2 `PSTricks-add' (hv,dr)






More information about the PSTricks mailing list