[pstricks] PSTricks Digest, Vol 195, Issue 3
Denis Verges
denis.verges at wanadoo.fr
Mon May 20 16:05:25 CEST 2019
Thanks end thanksHerbert is the great, and PSTricks beautiful.
With this code :
%%%%%%%%%
\psset{xunit=0.5cm,yunit=50cm,comma=true}
\begin{pspicture}(512,-0.015)(540,0.14)
\psaxes[ticksize=-2pt 2pt,linewidth=1.25pt,Ox=512,Dx=2,Dy=0.01](512,0)(512,0)(540,0.12)
\psBinomial[markZeros,barwidth=1,linecolor=blue]{513,540,540}{0.97778}
\end{pspicture}
%%%%%%%%%%%%%
all is perfect.
Other solution with \lisplot
%%%%%%%%%
%\def\data{
%512 0.000027
%513 0.000064
%514 0.000148
%515 0.000329
%516 0.000702
%517 0.001434
%518 0.002801
%519 0.005224
%520 0.009283
%521 0.01568
%522 0.025112
%523 0.038028
%524 0.054285
%525 0.072793
%526 0.091338
%527 0.106763
%528 0.11566
%529 0.11544
%530 0.10542
%531 0.087355
%532 0.065024
%533 0.0429425
%534 0.024768
%535 0.012222
%536 0.0050165
%537 0.0016442
%538 0.0004034
%539 0.0000659
%540 0.00000537
%}
%\begin{center}
%{\small
%\def\larg{0.4cm}
%\psset{xunit=\larg,yunit=80cm}
%\def\xmin {510} \def\xmax {542} \def\ymin {0} \def\ymax {0.12}
%\begin{pspicture}(\xmin,\ymin)(\xmax,\ymax)
%\psaxes[ticksize=-2pt 2pt, Dx=2,Dy=0.01, Ox=510,comma](\xmin,0)(510,-0.001)(541.9,0.119)
%\listplot[plotstyle=bar,barwidth=\larg,linecolor=green]{\data}
%\end{pspicture}
%%%%%%%%%%%
gives the same figure.
This diagram is in a BTS exam given to students in Biologie 13/05/2019 and the diagram was false !
Denis Vergès
> Le 18 mai 2019 à 12:00, pstricks-request at tug.org a écrit :
>
> Send PSTricks mailing list submissions to
> pstricks at tug.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://tug.org/mailman/listinfo/pstricks
> or, via email, send a message with subject or body 'help' to
> pstricks-request at tug.org
>
> You can reach the person managing the list at
> pstricks-owner at tug.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of PSTricks digest..."
>
>
> Today's Topics:
>
> 1. Re: problem with \psBinomial (Herbert Voss)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 17 May 2019 17:02:38 +0200
> From: Herbert Voss <Herbert.Voss at fu-berlin.de>
> To: pstricks at tug.org
> Subject: Re: [pstricks] problem with \psBinomial
> Message-ID: <c4cfd321-8ea4-bc3c-eab8-eafb9cde32eb at fu-berlin.de>
> Content-Type: text/plain; charset="windows-1252"; Format="flowed"
>
>
>
> Am 17.05.19 um 09:45 schrieb Herbert Voss:
>>
>>
>> Am 16.05.19 um 22:31 schrieb Denis Verges:
>>> Hello
>>> The code :
>>> %%%%%%%%%
>>> \begin{center}
>>> \psset{xunit=0.5cm,yunit=50cm,comma=true}
>>> \begin{pspicture}(-1,-0.01)(30,0.14)
>>> \psaxes[linewidth=1.25pt,Ox=512,Dx=2,Dy=0.01](1,0)(0,0)(30,0.12)
>>> \psBinomialF[barwidth=1,linecolor=red]{512,540,540}{0.97777778}
>>> \end{pspicture}
>>> \end{center}
>>> %%%%%%%%%
>
>
>> There was a missing "end" for the local dictionary.
>> I uploaded a fixed version to CTAN or get it from
>>
>> http://archiv.dante.de/~herbert/TeXnik/tex/generic/pst-func/
>>
>> However, I do not get any output with your parameters.
>
> It must be
>
>
> \rput(-512,0){\psBinomialF[barwidth=1,linecolor=red]{512,540,540}{0.97778}}
>
> then I get the attached image
>
> Herbert
>
>
>
>>
>> Herbert
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Bildschirmfoto vom 2019-05-17 16-58-41.png
> Type: image/png
> Size: 19095 bytes
> Desc: not available
> URL: <https://tug.org/pipermail/pstricks/attachments/20190517/3291d2ed/attachment-0001.png>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> https://tug.org/mailman/listinfo/pstricks
>
>
> ------------------------------
>
> End of PSTricks Digest, Vol 195, Issue 3
> ****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20190520/c51a1603/attachment.html>
More information about the PSTricks
mailing list