Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11844
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: List & Plot: do they parse options differently? |
| Date | 2012-09-22 07:06 +0000 |
| Message-ID | <k3jo1m$2c3$1@smc.vnet.net> (permalink) |
| References | <20120921081425.495C56854@smc.vnet.net> |
| Organization | Time-Warner Telecom |
On Sep 21, 2012, at 4:14 AM, James Stein <james@stein.org> wrote:
> ...I fail to see why the call to Plot fails here:
>
> Clear [ s ] ;
> s = ImageSize -> Small;
> Plot [ x, { x, 0, 3 } , s ]
I believe this behavior results from Plot having the attribute HoldAll. The same thing will happen for any other option (which is just an additional argument that happens to take the form of a Rule).
Just force Plot to explicitly evaluate that argument:
Plot[x, {x, 0, 3}, Evaluate[s]]
---
Murray Eisenberg
murray@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
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: List & Plot: do they parse options differently? Murray Eisenberg <murray@math.umass.edu> - 2012-09-22 07:06 +0000
csiph-web