Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: list of options in Plot

  • To: mathgroup at
  • Subject: [mg61896] Re: [mg61879] list of options in Plot
  • From: Kristjan Kannike <kkannike at>
  • Date: Thu, 3 Nov 2005 05:34:32 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at


To splice arguments into a function, you need a Sequence. Thus your
options should look like

opts = Sequence[PlotStyle -> RGBColor[1, 0, 0], Ticks -> None];

To apply them to a plot, you have to explicitly evaluate them:

Plot[x^2, {x, 0, 1}, opt // Evaluate];


On Thu, 3 Nov 2005 pieter.eendebak at wrote:

> Hi!
> I need to plot functions with the same options all over again. For
> example
> Plot[ x^2, {x,0,1}, PlotStyle->RBGColor[1,0,0], Ticks->None]
> Plot[ x^3, {x,0,1}, PlotStyle->RBGColor[1,0,0], Ticks->None]
> Plot[ x^4, {x,0,1}, PlotStyle->RBGColor[1,0,0], Ticks->None]
> I would like to shorten this to
> options={PlotStyle->RBGColor[1,0,0], Ticks->None}
> Plot[x^2, {x,0,1}, options]
> Plot[x^3, {x,0,1}, options]
> Plot[x^4, {x,0,1}, options]
> The code above does not work, I need some `unlist' function for the
> options.  Can someone tell me how to do this in Mathematica?
> thanks,
> pieter

  • Prev by Date: Question about "Reduce"
  • Next by Date: Re: boolean function, interpolation
  • Previous by thread: list of options in Plot
  • Next by thread: Re: list of options in Plot