# Color lists not working in foreach loop

I'm trying to plot the beta prime distribution, which is defined for x>0 with the two parameters α and β, having the probability density function:

I'm trying to plot a graph like this:

This is what I have so far:

I can't get the colours to work, even though I am using cycle list name as shown in this question - pgfplots line colors

MWE:

\documentclass[a4paper]{article}
\usepackage{pgfplots}

\begin{document}

\begin{figure}
\centering
\begin{tikzpicture}

\begin{axis}[
%
xmin=0,xmax=5,
ymin=0,ymax=2,
cycle list name = auto,
samples=100]

\foreach \A/\B/\C in {%
1/1/1,
1/2/0.5,
2/1/0.5,
2/2/0.1667,
2/3/0.0833,
5/3/0.009524}{%
}
\end{axis}

\end{tikzpicture}
\end{figure}

\end{document}

• I've just realised the thing that was missing was a + after \addplot – John Mar 7 at 15:44

I think that it is possible if you insert a cycle of color: here there is your revised MWE. The symbols %<------ correspond to my additions.

\documentclass[a4paper]{article}
\usepackage{pgfplots}
\pgfplotscreateplotcyclelist{fycle}{%  %<------
{blue}, %<------
{orange},%<------
{red},%<------
{green},%<------
}%<------

\begin{document}

\begin{figure}
\centering
\begin{tikzpicture}

\begin{axis}[
%
xmin=0,xmax=5,
ymin=0,ymax=2,
cycle list name = fycle,
samples=100]

\foreach \A/\B/\C in {%
1/1/1,
1/2/0.5,
2/1/0.5,
2/2/0.1667,
2/3/0.0833,
5/3/0.009524}{%