Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11841 > unrolled thread

Re: List & Plot: do they parse options differently?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-09-22 06:51 +0000
Last post2012-09-22 06:51 +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.


Contents

  Re: List & Plot: do they parse options differently? Bob Hanlon <hanlonr357@gmail.com> - 2012-09-22 06:51 +0000

#11841 — Re: List & Plot: do they parse options differently?

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-09-22 06:51 +0000
SubjectRe: List & Plot: do they parse options differently?
Message-ID<k3jn65$28o$1@smc.vnet.net>
Unlike ListPlot, Plot has attribute HoldAll. Consequently, for Plot
you need to use Evaluate.

Attributes /@ {ListPlot, Plot}

{{Protected}, {HoldAll, Protected}}

Clear[s];
s = ImageSize -> Small;
ListPlot[{1, 2, 3}, s]
Plot[x, {x, 0, 3}, Evaluate[s]]


Bob Hanlon


On Fri, Sep 21, 2012 at 4:14 AM, James Stein <james@stein.org> wrote:
> I may have temporary blindness, but I fail to see why the call to Plot
> fails here:
>
> Clear [ s ] ;
> s = ImageSize -> Small;
> ListPlot [ {  1, 2, 3 } ,  s ]
> Plot [ x,  { x, 0, 3 } ,  s ]
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web