3
$\begingroup$

I have an interpolation function which returns a list, e.g.:

f=Interpolation[{{1,{1,2,3}},{2,{4,5,6}}}];

When I try to plot it, I get single-colored curves.

Plot[f[x],{x,1,2}]

result

I'd like to make it use normal default different colors like here:

Plot[Evaluate@Table[2x+i,{i,0,2}],{x,1,2}]

enter image description here

But using Evaluate doesn't help in the first case as it does in the second. How can I get the colors for interpolation function?

$\endgroup$
  • $\begingroup$ Related: (1731) $\endgroup$ – Mr.Wizard Aug 4 '13 at 23:15
  • $\begingroup$ Perhaps I'm missing something, but while the answers to the related questions do explain the problem, it doesn't seem like they provide a solution to the specific problem of plotting multi-dimensional interpolating functions. $\endgroup$ – Cassini Feb 13 at 22:14