MathGroup Archive 1996

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

Search the Archive

Re: Break a List into Individual Elements?


AES wrote:
> 
> I want to write
> 
>    myPlotOptions = {Option1->value1,Option2->,value2,...}
> 
>    SetOptions[Plot, myPlotOptions]
> 
>    SetOptions[LogPlot, myPlot Options]
> 
> but SetOptions[] doesn't want to accept a list as the second
> argument.  How can I accomplish this?

you can do

SetOptions[LogPlot, #]& /@ {rule1, rule2,...};

Map and Function are tremendously useful if you get the hang of it.

 Xah
 xah at best.com; 74631.731 at compuserve.com
 http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html
 Mountain View, CA, USA


  • Prev by Date: Re: Programming: Replace Heads
  • Next by Date: plot with multiple y axes (eg)
  • Previous by thread: Re: Break a List into Individual Elements?
  • Next by thread: Re: Break a List into Individual Elements?