[pstricks] binomial-distribution

Doris Wagner doris.wagner at mac.com
Tue Nov 7 18:19:02 CET 2006


hi pstricks-list,

can anybody see, why the graph doesn't look like it should in the first  
example (p>=0.5) but looks ok in the second (p<0.5)???

i can guess that the problem is in closing some polygons...

I want to have a good-looking graph for p=0.5 where the problem also  
appears

\documentclass[11pt,a4paper]{article}
\usepackage{xcolor}
\usepackage{pstricks}
\usepackage{pst-func}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=1,yunit=5}
\begin{pspicture}(-2, 
-0.2)(7.5,0.75)\psaxes[linewidth=1.3pt,arrowscale=2,Dy=0.2,dy=0.2\psyuni 
t]{->}(0,0)( 
-1.9,0)(7,0.6)\psBinomial[linewidth=0.5pt,fillstyle=solid,fillcolor=ligh 
tgray
]{6}{0.2}
\end{pspicture}\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[11pt,a4paper]{article}
\usepackage{xcolor}
\usepackage{pstricks}
\usepackage{pst-func}
\usepackage{pst-plot}
\begin{document}
\psset{xunit=1,yunit=5}
\begin{pspicture}(-2, 
-0.2)(7.5,0.75)\psaxes[linewidth=1.3pt,arrowscale=2,Dy=0.2,dy=0.2\psyuni 
t]{->}(0,0)( 
-1.9,0)(7,0.6)\psBinomial[linewidth=0.5pt,fillstyle=solid,fillcolor=ligh 
tgray
]{6}{0.7}
\end{pspicture}\end{document}




More information about the PSTricks mailing list