% TeX root = ../main.tex

\begin{tikzpicture}[scale=0.4]
    \begin{axis}[
        axis lines = left,
        xlabel = {$k$},
        ylabel = {$P(X=k)$},
        x label style={at={(axis description cs:1,0.1)},anchor=north},
        y label style={at={(axis description cs:-0.15,1)},rotate = -90,
        anchor=north},
        ymax=0.45,
        yticklabel style={
            /pgf/number format/fixed,
            % /pgf/number format/fixed zerofill,
            /pgf/number format/precision=2
        },
        ymin=0,
        xmin=-0.5,
        xmax=11.5,
        xtick={0,1,...,11},
        % ytick={0,0.25,...,1},
        ybar=0pt,
        bar width=1,
        bar shift=0pt,
        % font=\tiny
    ]
        % Geometric p=0.4, up to r=11
        % [0.4        0.24       0.144      0.0864     0.05184    0.031104
        % 0.0186624  0.01119744 0.00671846 0.00403108 0.00241865 0.00145119]
        \addplot[fill=rwth-50] coordinates {
            (0, 0.4)
            (1, 0.24)
            (2, 0.144)
            (3, 0.0864)
            (4, 0.05184)
            (5, 0.031104)
            (6, 0.0186624)
            (7, 0.01119744)
            (8, 0.00671846)
            (9, 0.00403108)
            (10, 0.00241865)
            (11, 0.00145119)
        };
    \end{axis}
\end{tikzpicture}