Re: Baffling Failure when plotting multiple curves.

*To*: mathgroup at smc.vnet.net*Subject*: [mg44166] Re: Baffling Failure when plotting multiple curves.*From*: Marcus Stollsteimer <marcus314 at yahoo.com>*Date*: Sat, 25 Oct 2003 06:26:17 -0400 (EDT)*Organization*: Comp.Center (RUS), U of Stuttgart, FRG*References*: <bnao48$4ei$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Bob Harris wrote: > When I try to plot this list of functions AS THE RETURN VALUE > OF MY FUNCTION, Mathematica complains (details below). However, if I > evaluate the function first, then cut and paste the result into the call to > Plot, it works ok You have to use Evaluate[]: Plot[Evaluate[voteCurves[{p1,p2}]],{\[Theta], -90, 180}, AxesOrigin -> {0,0}, PlotRange -> {{-90, 180}, {0, 255 Sqrt[2]}}, AspectRatio -> 1, Frame -> True]; Evaluate tells the Plot command to make the table of functions first (see Mathematica Book 1.9.1). Marcus -- What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -- W. Allen