MathGroup Archive 1996

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

Search the Archive

Re: Break a List into Individual Elements?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5202] Re: Break a List into Individual Elements?
  • From: Xah Lee <xah at best.com>
  • Date: Thu, 14 Nov 1996 02:02:07 -0500
  • Organization: Best Internet Communications
  • Sender: owner-wri-mathgroup at wolfram.com

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?