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

*To*: mathgroup at smc.vnet.net*Subject*: [mg128185] Re: List & Plot: do they parse options differently?*From*: Bob Hanlon <hanlonr357 at gmail.com>*Date*: Sat, 22 Sep 2012 02:46:46 -0400 (EDT)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*Delivered-to*: l-mathgroup@wolfram.com*Delivered-to*: mathgroup-newout@smc.vnet.net*Delivered-to*: mathgroup-newsend@smc.vnet.net*References*: <20120921081425.495C56854@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 at 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 ] >

**References**:**List & Plot: do they parse options differently?***From:*James Stein <james@stein.org>