Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A Question About Directive

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111186] Re: A Question About Directive
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 23 Jul 2010 07:10:21 -0400 (EDT)

However, the following with nested lists is equivalent to the use of Directive

Plot[{Cos[x], Sin[x]}, {x, 0, 2 Pi},
 PlotStyle -> {{Thick, Red}}]


Bob Hanlon

---- Mark McClure <mcmcclur at unca.edu> 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




  • Prev by Date: Big Memory Needed Again
  • Next by Date: Re: Convert directed graph to undirected graph
  • Previous by thread: Re: A Question About Directive
  • Next by thread: Re: A Question About Directive