MathGroup Archive 2007

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

Search the Archive

Re: Re: Making sense of Directive[ ]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75878] Re: [mg75813] Re: [mg75776] Making sense of Directive[ ]
  • From: DrMajorBob <drmajorbob at bigfoot.com>
  • Date: Sat, 12 May 2007 03:13:58 -0400 (EDT)
  • References: <200705100916.FAA08126@smc.vnet.net> <24009178.1178879881630.JavaMail.root@m35>
  • Reply-to: drmajorbob at bigfoot.com

That's a good argument if List, dependably, will not appear where  
Directive COULD appear -- but that's hardly the case, is it? Not unless  
you personally wrote the code, wrote it SINCE Directive appeared on the  
scene, and never slipped up and forgot to use it.

I suspect examples will eventually be found, though, where List can't take  
the place of Directive.

Bobby

On Fri, 11 May 2007 04:25:54 -0500, Murray Eisenberg  
<murray at math.umass.edu> wrote:

> The docs give some good examples of one use of Directive: to avoid
> nested graphics directives.  Thus the example
>
>    Plot[{Sin[x],Cos[x]},{x,0,10},
>       PlotStyle->{Directive[Red,Dashed],Directive[Blue,Thick]}]
>
> from the "home page" of Directive, although wordier, is to my eye
> easier to read than the equivalent:
>
>    Plot[{Sin[x],Cos[x]},{x,0,10},
>       PlotStyle->{{Red,Dashed},{Blue,Thick}}]
>
> The longer and more numerous the directives are for the various elements
> of a plot or graphic, the more useful Directive becomes in untangling
> the syntax for the eye.
>
>
> Forex Ample wrote:
>> I stumbled upon the new Directive[ ] function, used to group Graphics
>> directives into one compound directive. However, I fail to see what it  
>> is
>> good for. In every example in the documentation, replacing Directive  
>> with
>> List seems to produce the exact same results. Anybody got a clue?
>>
>> Greetz, Naz
>>
>>
>>
>



-- 
DrMajorBob at bigfoot.com


  • Prev by Date: Re: Re: Mathematica 6 Graphics Options
  • Next by Date: Re: Re: Format->Magnification does not work
  • Previous by thread: Re: Making sense of Directive[ ]
  • Next by thread: Re: Making sense of Directive[ ]