[pstricks] problem with \psGaussI

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Nov 7 09:25:09 CET 2009

Am 07.11.2009 01:55, schrieb mathias legrand:
> \psset{yunit=10cm,xunit=1.5}

this is set globally to 10cm absolute

> \begin{pspicture}(-3,-0.2)(3,0.5)
> \pscustom[fillstyle=solid,fillcolor=ocre!30]{

there is no need here for \pscustom, you can fill the

> \psGauss[sigma=1,mue=0,linecolor=black, linewidth=0pt]{-2.75}{2.75}}
> \psGauss[sigma=1,mue=0,linecolor=black, linewidth=1.5pt]{-2.75}{2.75}
> \psaxes[Dx=1,Dy=0.1,tickstyle=top,labelsep=1pt](0,0)(-3,0)(3,0.5)
> \def\psvlabel#1{\small\textcolor{ocre}{#1}}
> \psset{yunit=0.5}

this is set globally, but relative to the current unit of 10cm

> \psaxes[Dy=0.1,Oy=0,ticks=y,labels=y,tickstyle=bottom,ylabelPos=right,axesstyle=frame,labelsep=1pt]{-}(3,0)(-3,1.0001)
> \psGaussI[sigma=1,mue=0,linewidth=1.5pt,yunit=2.5,Simpson=20,linecolor=ocre]{-2.75}{2.75}%

so the correct value to get the old absolute 10cm is yunit=2 (relative)
or yunit=10cm (absolute).


More information about the PSTricks mailing list