Am 06.07.2006 um 16:17 schrieb Shanks N:
>
>
>
> Till Tantau <
tantau@...> writes:
>
> Many thanks, it works perfectly! I have a couple of questions
> regarding the code, inline below. I'd be grateful, if you could
> explain how you arrived at the constants in the code, the ones I have
> asked inline.
>
> [...]
>
>
>> \begin{scope}[smooth,draw=gray!20,y=0.3989422804cm]
>
> Please, can you explain the reason for the y value above?
>
That's easy: it's 1/\sqrt(2\pi) (if I remember correctly...).
>
> [...]
>
>> \foreach \pos/\label in {-3/$-3\sigma$,-2/$-2\sigma$,-1/$-\sigma$,
>> 1/$\sigma$,2/$2\sigma$,3/$3\sigma$}
>> \draw (\pos,0) -- (\pos,-0.1) (\pos cm,-3ex) node
>> [anchor=base,fill=white,inner sep=1pt] {\label};
>
> & this \draw command in the loop above?
The draw is used for the little ticks for the labels. The (\pos
cm,-3ex) is used for correct positioning of the label.
>
>>
>> \draw (-0.1,1) -- (.1,1) node [right,fill=white,inner sep=1pt] {$
>> \sigma$};
>>
>> \foreach \pos/\percent/\height in
>> {1/34/0.5,2/14/0.25,3/2/0.125,4/0.1/0.1}
>> {
>> \node[text=col
>> \pos,anchor=base,yshift=2pt,xshift=-0.625cm,fill=white,inner sep=1pt]
>> at (\pos,\height) {$\percent\%$};
>
> & the x & y shift in this triple loop? and the inner sep one too?
The inner sep is used to reduce the white area (default of inner sep
is 1ex). The shifts are needed so that the nodes are but where I want
them ("finetuning").
I suggest fooling around with the values to get a feeling. They are
also documented in the user guide.
Best regards,
Till
--
Prof. Dr. Till Tantau <
tantau@...>
http://www.tcs.uni-luebeck.deUsing Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users