MathGroup Archive 2004

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

Search the Archive

Re: gridlines styles.

  • To: mathgroup at
  • Subject: [mg51718] Re: [mg51671] gridlines styles.
  • From: "David Annetts" <davidannetts at>
  • Date: Sat, 30 Oct 2004 03:48:11 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

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.



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