MathGroup Archive 2003

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

Search the Archive

AW: Re: Baffling Failure when plotting multiple curves.

  • To: mathgroup at
  • Subject: [mg44197] AW: [mg44166] Re: Baffling Failure when plotting multiple curves.
  • From: Klamser at (Peter Klamser)
  • Date: Sun, 26 Oct 2003 00:41:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


this is a very old problem (... as old as Mathematica).

A good source for a excellent solutions for many more problems is:


Ted Ersek also wrote the package PlotFunctions, you find in the MathSource library:

which handles the same problem.



-----Ursprüngliche Nachricht-----
Von: Marcus Stollsteimer [mailto:marcus314 at]
Gesendet: Samstag, 25. Oktober 2003 12:26
An: mathgroup at
Betreff: [mg44166] Re: Baffling Failure when plotting multiple curves.

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).


What if everything is an illusion and nothing exists?
In that case, I definitely overpaid for my carpet. -- W. Allen

  • Prev by Date: Re: imposing parameter assumptions
  • Next by Date: Re: New version, old bugs
  • Previous by thread: RE: Re: errors while picking random numbers - use of % and %%
  • Next by thread: Offending 2D-Axes