1

I'm trying to plot this Plot[Fit[med,{1,x},x],{x,0,10}] Why this doesn't work? I find out that if I do Plot[Evaluate@Fit[med,{1,x},x],{x,0,10}] works fine. But can somebody explain me why this happens in first place?

kglr
  • 394,356
  • 18
  • 477
  • 896
Kafkarudo
  • 619
  • 5
  • 9

1 Answers1

4

Plot has attribute HoldAll, therefore the expression Fit is hold in an unevaluated form.

Using

Attributes@Plot

(* out *)
{HoldAll, Protected}

reveals the attributes

hieron
  • 1,167
  • 6
  • 13