MathGroup Archive 2012

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

Search the Archive

Re: options in Plot

  • To: mathgroup at
  • Subject: [mg129179] Re: options in Plot
  • From: "djmpark" <djmpark at>
  • Date: Thu, 20 Dec 2012 03:19:14 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • References: <18854455.68719.1355911350798.JavaMail.root@m06>

It's because of the respective Attributes of ListPlot and Plot.

{Protected, ReadProtected} 
{HoldAll, Protected, ReadProtected} 

So you have to Evaluate the opts in Plot.

Plot[x, {x, 0, 1}, Evaluate@opts] 

Maybe somebody can again explain why Plot has the Attribute HoldAll, instead
of no Holds or HoldFirst. 

I still think it would be helpful if the Function pages had a distinctive
place that listed all Attributes of a function. They tend to  get lost in
the Details listing and do not list all of them. It may be that all WRI
functions are Protected, but not all private symbols are.

David Park
djmpark at 

From: Nigel King [mailto:nigel.king at] 

Hi MathGroup,
Most Graphic functions allow applying a collection of options as in opts =
{Frame -> True, GridLines -> {{1}, {1}}}

One can then use the opts in the following plots ListPlot[{{1, 1}}, opts]
Plot[x, {x, 0, 1}, opts] The ListPlot works as expected, the Plot does not.
It results with Plot[x, {x, 0, 1}, opts]

I believe that this is a change from M8 to M9.

Is this a bug or intended functionality?


Nigel King

  • Prev by Date: Re: Applying "Replace" to subsets of lists
  • Next by Date: Linear regression notebook won't work in Version 9
  • Previous by thread: Re: options in Plot
  • Next by thread: Re: options in Plot