I am trying to predefine the functions I want to plot. A minimal example of what I am trying to achieve looks like this:
fToPlot = {x, 2 x};
legendToPlot = {"x", "2x"};
Plot[fToPlot, {x, 0, 5}, PlotLegends -> legendToPlot]
To my suprise this produces the following output:
which omits the second entry of the legendToPlot list completely. Why does this happen and how do I fix it?