Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11844 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2012-09-22 07:06 +0000 |
| Last post | 2012-09-22 07:06 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: List & Plot: do they parse options differently? Murray Eisenberg <murray@math.umass.edu> - 2012-09-22 07:06 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-09-22 07:06 +0000 |
| Subject | Re: List & Plot: do they parse options differently? |
| Message-ID | <k3jo1m$2c3$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web