MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plotting multiple functions using Map


Hi,

Evaluate[] ?

and 

f[x_, y_] := x + y

ylist = {1, 2, 3};
Plot[Evaluate[Map[f[x, #1] &, ylist]], {x, -3, 3}]

work fine. Plot[] has the hold all attribute and
so you must force the evaluation to get the list
of functions first.

Regards
  Jens


  • Prev by Date: Contour labeling
  • Next by Date: combining graphics
  • Previous by thread: Plotting multiple functions using Map
  • Next by thread: Re: Plotting multiple functions using Map