MathGroup Archive 2010

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

Search the Archive

Re: A Question About Directive

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111115] Re: A Question About Directive
  • From: Helen Read <hpr at together.net>
  • Date: Wed, 21 Jul 2010 07:10:45 -0400 (EDT)
  • References: <i23k7a$f1f$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>

On 7/20/2010 3:45 AM, Murray Eisenberg wrote:
> In some situations, using Directive[opt1,opt2] instead of {opt1,opt2}
> can make code easier to read by avoiding nested parentheses.
>
> Compare, for example:
>
>     Plot[{Sin[x],Cos[x]},{x,0,Pi},PlotStyle->
>        {Directive[Thick,Red],Directive[Thick,Dashed,Blue]}]
>
>     Plot[{Sin[x], Cos[x]}, {x, 0, Pi},
>         PlotStyle ->  {{Thick, Red}, {Thick, Dashed, Blue}}]

I have run into examples where I simply can't get things to work the way 
I want without Directive, but of course I can't come up with one this 
morning....

-- 
Helen Read
University of Vermont


  • Prev by Date: Re: Help Mathematica simplify this
  • Next by Date: Re: Very very basic question about Mathematica expressions
  • Previous by thread: Re: A Question About Directive
  • Next by thread: Re: A Question About Directive