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


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

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

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: List & Plot: do they parse options differently?
Date 2012-09-22 06:51 +0000
Message-ID <k3jn65$28o$1@smc.vnet.net> (permalink)
References <20120921081425.495C56854@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web