Re: Re: Give a list of options in Mathematica 6
- To: mathgroup at smc.vnet.net
- Subject: [mg84654] Re: [mg84634] Re: Give a list of options in Mathematica 6
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Tue, 8 Jan 2008 01:33:25 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <flslng$ps9$1@smc.vnet.net> <200801071132.GAA04486@smc.vnet.net>
- Reply-to: murray at math.umass.edu
Did you actually try those? Neither Evaluate[opts] nor Evaluate[Flatten[opts] seems to work (at least for me). Peter Breitfeld wrote: > Giacomo Ciani schrieb: > [*** snipp ***] >> Noe I'm unable to replicate this in mathematica 6. Cut and paste of a >> sample notebook: >> >> In[65]:= opts = {PlotRange -> {0, 1}, AxesOrigin -> {0, 0.5}} >> >> Out[65]= {PlotRange -> {0, 1}, AxesOrigin -> {0, 0.5}} >> >> In[66]:= Plot[x, {x, 0, 1}, opts] >> >> During evaluation of In[66]:= Plot::nonopt: Options expected (instead >> \ >> of opts) beyond position 2 in Plot[x,{x,0,1},opts]. An option must be >> \ >> a rule or a list of rules. >> > [*** snipp ***] > > Giacomo, > use > > Plot[x, {x, 0, 1}, Evaluate[opts]] > > Sometimes I found that I needed Evaluate[Flatten[opts]] > > Gruss Peter -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
- References:
- Re: Give a list of options in Mathematica 6
- From: Peter Breitfeld <phbrf@t-online.de>
- Re: Give a list of options in Mathematica 6