MathGroup Archive 2003

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

Search the Archive

RE: RE: Options in ListPlot and Plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38654] RE: [mg38624] RE: [mg38613] Options in ListPlot and Plot
  • From: "David Park" <djmp at earthlink.net>
  • Date: Fri, 3 Jan 2003 00:15:38 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

I have received a number of replies pointing out that there are perfectly
good reasons why ListPlot does not have HoldAll and some other plots do. So
I completely agree that WRI is not being inconsistent here.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: David Park [mailto:djmp at earthlink.net]
To: mathgroup at smc.vnet.net

Mike,

Attributes[ListPlot]
{Protected}

Attributes[Plot]
{HoldAll, Protected}

I do not know why Mathematica is inconsistent here.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/



From: Mike [mailto:mikeh1980 at optusnet.com.au]
To: mathgroup at smc.vnet.net


For appearance reasons I usually place all my Plot and ListPlot options in a
list eg.

optionA={PlotStyle->{....},Frame->True, and so on}

When I plot a list everything is fine:

ListPlot[list, optionA]

out=> nice plot

but when I use options in Plot I get an error message unless I wrap Evaluate
around the options.

For example

Plot[x^2,{x,0,5}, optionB]

out=> messages

Plot[x^2,{x,0,5}, Evaluate[optionB]]

out=> nice plot


??? why is this so????

Why must I wrap Evaluate around my options in Plot?

thanks

Mike

ps. This is with version 4.0.2 on a G4 power Mac.





  • Prev by Date: Re: Solving Alphametics with Mathematica
  • Next by Date: webMathematica trouble
  • Previous by thread: Re: Options in ListPlot and Plot
  • Next by thread: Re: RE: Options in ListPlot and Plot