The graph is not working as intended and I am getting the following error code: ! Package pgfkeys Error: I do not know the key '/tikz/discontinuous' and I am going to ignore it. Perhaps you misspelled it.See the pgfkeys package documentation for explanation.Type H for immediate help.... \end{axis}
My code is below.
\documentclass[]{article}
\usepackage{pgfplotstable}
\usepackage{pgfplots}
\begin{document}
The C.D.F is as follows:
\[F(x)=
\begin{dcases}
0&\text{$x<1$}\\
\frac{11}{36}&\text{$1\leq x<2$}\\
\frac{20}{36}&\text{$2\leq x<3$}\\
\frac{27}{36}&\text{$3\leq x<4$}\\
\frac{32}{36}&\text{$4\leq x<5$}\\
\frac{35}{36}&\text{$5\leq x<6$}\\
1&\text{$x\geq 6$}\\
\end{dcases}
\]
The C.D.F can be graphed as follows:
{\centering
\begin{tikzpicture}
\begin{axis}[
clip=false,
jump mark left,
ymin=0,ymax=1,
xmin=0, xmax=5,
every axis plot/.style={very thick},
discontinuous,
table/create on use/cumulative distribution/.style={
create col/expr={\pgfmathaccuma + \thisrow{f(x)}}
}
]
\addplot [red] table [y=cumulative distribution]{
x f(x)
0 0
1 11/36
2 20/36
3 27/36
4 32/36
5 35/36
6 1
};
\end{axis}
\end{tikzpicture}
\par}
\end{document}

discontinuous. – Henri Menke Sep 20 '18 at 02:42discontinuous(and adding\usepackage{mathtools}fordcases) fixes it for me, by which I mean that it compiles (code, screenshot). Beyond that you have to get more specific about what “The graph is not working as intended” means. Probably you want something more like this: code, screenshot – Henri Menke Sep 20 '18 at 03:03xmin,xmax,yminandymaxas well to get to get a plot that fits into the axis box. – Sep 20 '18 at 03:38