MathGroup Archive 2004

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

Search the Archive

Re: gridlines styles.

  • To: mathgroup at
  • Subject: [mg51721] Re: [mg51671] gridlines styles.
  • From: "David Park" <djmp at>
  • Date: Sun, 31 Oct 2004 01:15:30 -0500 (EST)
  • Sender: owner-wri-mathgroup at


You have to specify the style with each grid line. Also, the Help says...

"Grid lines are by default colored light blue."

I have never observered that their color is other than black, at least on
the monitor.

So you would have to do it this way:

Plot[Sin[x], {x, 0, 2Pi},
     GridLines ->
      {Table[{x, {RGBColor[0, 1, 1]}}, {x, 0, 6}],
       Table[{y, {RGBColor[0, 1, 1]}}, {y, -1, 1, 0.5}]}];

With the DrawGraphics CustomGridLines routine the default color is LightBlue
and the same plot would be specified, with Gray lines say, this way:


    {Draw[Sin[x], {x, 0, 2Pi}]},
    Axes -> True,
    GridLines ->
      {CustomGridLines[Identity, {0, 6, 1}, {Gray}],
       CustomGridLines[Identity, {-1, 1, 0.5}, {Gray}]}];

If the last argument is left out you get LightBlue.

David Park
djmp at

From: sean kim [mailto:sean_incali at]
To: mathgroup at

i always get baffled at things like this.

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.

hm. how can Mathematica set the option for Grid Lines Style if
not GridLinesStyle?

any insights will be greatly appreciated.]


Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

  • Prev by Date: Re: Re: Inverse of "PowerExpand"
  • Next by Date: Re: listplot and plot of the same function display in different scale...
  • Previous by thread: Re: gridlines styles.
  • Next by thread: bimodal ditribution form counting signs of Pi digits differences