Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: [mg5199] Re: [mg5176] Break a List into Individual Elements?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg5199] Re: [mg5176] Break a List into Individual Elements?
Posted: Nov 15, 1996 3:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I received only part of this posting: in case the sme happened to
others here is a second try.

siegman@ee.stanford.edu (AES)
Subject: [mg5176] Break a List into Individual Elements?
writes

>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?


Two work arounds are

SetOptions[Plot, Sequence@@myPlotOptions]

and

myPlotOptionsSequence =
Sequence[Option1->value1,Option2->,value2,...]

SetOptions[Plot, myPlotOptionsSequence]

Allan Hayes
hay@haystack.demon.co.uk
http://www.haystack.demon.co.uk








Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.