[pstricks] bell-shaped with pstricks

Herbert Voss LaTeX at zedat.fu-berlin.de
Wed Mar 14 07:38:48 CET 2007


Vo Duc Hoang Vu schrieb:
> Thank you for your code on mailing list of pstricks. I have copied the code 
> and paste it into the editor as below:
> ----------------------------------------------------
> \documentclass{report}
> \usepackage{pstricks-add,pst-plot}
>   
\usepackage{pstricks-add,pst-plot,pst-math}
                                                         ^^^^^^^^^^^^

> \begin{document}
> \begin{pspicture}(8.5cm, 3.5cm)
> \psset{xunit=10mm, yunit=60mm}
> \psplot[linecolor=gray, plotstyle=curve]{1}{7}{x 4 1 GAUSS}
> \pscustom[linecolor=gray, plotstyle=curve, fillstyle=hlines, 
> hatchcolor=gray]{%
> \psline(5.4,0)(5.4,0) \psplot[liftpen=1]{5.4}{7}{x 4 1 GAUSS}}
> \psaxes[labels=none, ticks=x, ticksize=-1mm]{->}(4,0)(0,0)(8,.5)
> \uput[0]{0}(8,0){$t$}
> \uput[180]{0}(4,.5){$\frac{1}{\sqrt{2\pi}}\mathrm{e}^{-\frac{t^2}{2}}$}
> \uput[270]{0}(5.4,0){$x$}
> \uput[270]{0}(4,0){$0$}
> \uput[270]{0}(5,0){$1$}
> \uput[270]{0}(3,0){$-1$}
> \end{pspicture}
> \end{document}
>   
btw. you should subscribe to the list.

HEbrert



More information about the PSTricks mailing list