[pstricks] second update for psPoisson

Herbert Voss Herbert.Voss at fu-berlin.de
Sun Aug 26 20:59:48 CEST 2007


halbard7 at aol.com wrote:
> Normal approximation to Poisson with lambda=30
>
> \psset{xunit=0.35cm,yunit=40cm}
> \begin{pspicture}(14.5,0)(45.5,.08)
> \SpecialCoor
> \psline(14.5,.08)(14.5,0)(45.5,0)
> \multido{\n=16+2}{15}{
>   

starting with 14 on the x-axis makes live easier

\documentclass{article}
\usepackage{pstricks-add,pst-func}

\begin{document}

\psset{xunit=0.35cm,yunit=40cm}
\def\pshlabel#1{\tiny#1}\def\psvlabel#1{\tiny#1}

\begin{pspicture}(14.5,0)(46,.08)
\psaxes[ticksize=0 -3pt,Ox=14,Dx=2,dx=2,
    Dy=0.05,dy=0.05,showorigin=false]{->}(14,0)(45.5,0.08)
\psPoisson[markZeros]{16,44}{30}
\psGauss[mue=30,sigma=30 sqrt]{15}{45}
\end{pspicture}

\end{document}

Herbert




More information about the PSTricks mailing list