MathGroup Archive 2010

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

Search the Archive

A Question About Directive

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111074] A Question About Directive
  • From: "Kevin J. McCann" <kjm at KevinMcCann.com>
  • Date: Mon, 19 Jul 2010 02:10:33 -0400 (EDT)

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. For example, 
here is an example from the Help on Directive:

Graphics[{Directive[Red, Thick], Circle[],
   Directive[Blue, Opacity[0.5]], Rectangle[{0, -1}, {2, 1}]}]

However, if I change to this, I get the same thing:

Graphics[{Red, Thick, Circle[], Blue, Opacity[0.5],
   Rectangle[{0, -1}, {2, 1}]}]

So, what is the benefit of Directive?

Thanks,

Kevin


  • Prev by Date: Re: Misprint
  • Next by Date: Re: Misprint
  • Previous by thread: Re: Help Mathematica simplify this
  • Next by thread: Re: A Question About Directive