I'm struggling with the following code
f[x_] := {Undefined, x};
Plot[ f[x] , {x, 0, 1}]
Plot[{f[x][[1]], f[x][[2]]}, {x, 0, 1}]
f[x] == {f[x][[1]], f[x][[2]]}
The first plot produce blank figure and the second plot gives the graph of x as expected. What is puzzling, the last condition evaluates to True.
Can you please explain to me why the first plot gives blank plot while the second does not?
Plot[Evaluate@f[x],...– Kuba Jan 23 '16 at 09:09x=1at the top, then the first plot shows one. – tom Jan 23 '16 at 09:23Evaluated->Trueoption, but I haven't used it recently, also it is undocumented. But at least it preserves scoping. – Kuba Jan 23 '16 at 09:35