Re: A Question About Directive
- To: mathgroup at smc.vnet.net
- Subject: [mg111179] Re: A Question About Directive
- From: "Kevin J. McCann" <Kevin.McCann at umbc.edu>
- Date: Fri, 23 Jul 2010 07:09:00 -0400 (EDT)
- References: <i293pl$m64$1@smc.vnet.net>
A couple have responded with something like Mark's example below. Is
this really worth a new function and more keystrokes over:
Plot[{Cos[x], Sin[x]}, {x, 0, 2 Pi},
PlotStyle -> {{Thick, Red}}]
Kevin
Mark McClure wrote:
> On Mon, Jul 19, 2010 at 2:10 AM, Kevin J. McCann <kjm at kevinmccann.com> wrote:
>> I have noticed the use of Directive in some of the graphics examples
>> from Bob Hanlon, David Park, and others. I am curious about this
>> command, since it does not appear to do much that is new.
>> ...
>> So, what is the benefit of Directive?
>
> Try
> Plot[{Cos[x], Sin[x]}, {x, 0, 2 Pi},
> PlotStyle -> Directive[Thick, Red]]
> vs
> Plot[{Cos[x], Sin[x]}, {x, 0, 2 Pi},
> PlotStyle -> List[Thick, Red]]
>
> Mark McClure
>