[pstricks] binomial-distribution

Hernando Diaz hdiazmo at unal.edu.co
Tue Nov 7 22:27:20 CET 2006


Hi:
The problem appears on both graphs. It is just harder to see for small p.
Maybe some bug in \psBinomial definition?

Hernando Diaz

> -----Mensaje original-----
> De: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] En nombre
> de Doris Wagner
> Enviado el: Martes, 07 de Noviembre de 2006 12:19 p.m.
> Para: Graphics PSTricks with
> Asunto: [pstricks] binomial-distribution
> 
> 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}
> 
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks




More information about the PSTricks mailing list