% 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},
        xmax=1.7,
        ymax=1,
        yticklabel style={
            /pgf/number format/fixed,
            % /pgf/number format/fixed zerofill,
            /pgf/number format/precision=2
        },
        ymin=0,
        xmin=-0.5,
        xtick={0,1},
        ytick={0,0.25,...,1},
        ybar=0pt,
        bar width=1,
        bar shift=0pt,
        % font=\tiny
    ]
        \addplot[fill=rwth-50] coordinates {(0,0.75)(1,0.25)};
    \end{axis}
\end{tikzpicture}