MathGroup Archive 2010

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

Search the Archive

Re: A Question About Directive


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