3

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?

Ruslan
  • 7,152
  • 1
  • 23
  • 52
  • 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. – Cassini Feb 13 '20 at 22:14

0 Answers0