% 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},
        yticklabel style={
            /pgf/number format/fixed,
            % /pgf/number format/fixed zerofill,
            /pgf/number format/precision=2
        },
        ymin=0,
        ymax=0.45,
        xmin=-0.5,
        xmax=6.5,
        xtick={0,1,...,6},
        % ytick={0,0.1,...,0.3},
        ybar=0pt,
        bar width=1,
        bar shift=0pt,
        % font=\tiny
    ]
        % Hypergeom N=12 K=8 n=5
        % [0.         0.01010101 0.14141414 0.42424242 0.35353535 0.07070707]
        \addplot[fill=rwth-50] coordinates{
            (0,0.0)
            (1,0.01010101)
            (2,0.14141414)
            (3,0.42424242)
            (4,0.35353535)
            (5,0.07070707)
        };

        % Hypergeom N=20 K=8 n=10
        % 0.00035723 0.00952608 0.07501786 0.24005716 0.35008335 0.24005716
        %  0.07501786 0.00952608 0.00035723 0.         0.        
        % \addplot[fill=rwth-50] coordinates{
        %     (0, 0.00035723)
        %     (1, 0.00952608)
        %     (2, 0.07501786)
        %     (3, 0.24005716)
        %     (4, 0.35008335)
        %     (5, 0.24005716)
        %     (6, 0.07501786)
        %     (7, 0.00952608)
        %     (8, 0.00035723)
        %     (9, 0        )
        %     (10, 0       )
        % };
    \end{axis}
\end{tikzpicture}