MathGroup Archive 2003

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

Search the Archive

AW: Re: Baffling Failure when plotting multiple curves.

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

Hello,

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

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

http://www.verbeia.com/mathematica/

and

http://www.verbeia.com/mathematica/tips/Tricks.html

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

http://library.wolfram.com/infocenter/MathSource/599

which handles the same problem.

Regards

Peter

-----Ursprüngliche Nachricht-----
Von: Marcus Stollsteimer [mailto:marcus314 at yahoo.com]
Gesendet: Samstag, 25. Oktober 2003 12:26
An: mathgroup at smc.vnet.net
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).

Marcus

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