MathGroup Archive 2004

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

Search the Archive

Re: gridlines styles.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51718] Re: [mg51671] gridlines styles.
  • From: "David Annetts" <davidannetts at ihug.com.au>
  • Date: Sun, 31 Oct 2004 01:15:24 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Sean,

> 
> from the help menu...
> 
> "Grid line styles can involve graphics directives such
> as RGBColor and Thickness"
> 
> k. fine.
> Plot[Sin[x], {x, 0, 2Pi}, GridLines -> Automatic]
> Plot[Sin[x], {x, 0, 2Pi}, GridLines -> Automatic,
>   GridLinesStyle -> RGBColor[0, 1, 1]]
> 
> Apparently GridLinesStyle is not the options.

Nope.  Help told you as much.  If it were, it would've (should've) appeared
in the help.

> hm. how can Mathematica set the option for Grid Lines Style if
> not GridLinesStyle?
> 
> 
> any insights will be greatly appreciated.]

You have to specify them manually.

Perhaps playing around with the following might educe the insights you seek?

s1 = {Thickness[.01], Dashing[{.01, .05}], GrayLevel[.5]};
s2 = {Thickness[.01], Red};
Plot[Sin[x], {x, -Pi, Pi}, 
    PlotStyle -> {Thickness[.01], Green},
    GridLines -> {{Automatic, s1}, {Automatic, s2}}
    ];

Play with s1 & s2 to see different GridLine styles.

Regards,

Dave.



  • Prev by Date: Re: Converting Mathematica to MS Word
  • Next by Date: newbie question on functions
  • Previous by thread: Re: gridlines styles.
  • Next by thread: Re: gridlines styles.