Code for Binomial Distribution graphic is missing when trying to export as PGF/TikZ

Mop McGut shared this question 6 months ago
Needs Answer


I am trying to generate a TikZ Code of a graphic of a Binomial distribution for Latex, but the code that is being generated is missing the boxes and contains only the coordinate system:






\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=10.0cm]

\draw[->,color=black] (-2.89,0) -- (9.23,0);

\foreach \x in {,5}

\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};

\draw[->,color=black] (0,-0.31) -- (0,0.52);

\foreach \y in {-0.3,-0.2,-0.1,0.2,0.3,0.4,0.5}

\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};

\draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};

\clip(-2.89,-0.31) rectangle (9.23,0.52);


\draw[color=black] (5.99,0.04) node {$Binomialverteilgung = 1$};




Does anyone have an idea, why the boxes of the distribution are not being coded? When I export it as png-picture the distribution is being shown all right...

Thank You!

Comments (1)


Sorry, we don't have anyone to maintain the PGF/Export code at the moment so we probably won't be able to fix that

© 2021 International GeoGebra Institute