MathGroup Archive 2002

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

Search the Archive

Re: GridLines - Color of GridLines

  • To: mathgroup at
  • Subject: [mg33276] Re: [mg33250] GridLines - Color of GridLines
  • From: BobHanlon at
  • Date: Wed, 13 Mar 2002 03:14:44 -0500 (EST)
  • Sender: owner-wri-mathgroup at

In a message dated 3/12/02 5:33:46 AM, maxao at writes:

>can anybody help me to get e.g. red or grey Gridlines?
>You can use the attached example.
>[Contact the author to get the example - moderator]


To find out how to specify styles for GridLines, Plot with default GridLines.

plt = Plot[x^2+3x-4, {x,-5,5},
      Frame->True, Axes->False,

Use AbsoluteOptions to see the GridLines specifications

First /@ (GridLines /. AbsoluteOptions[plt])

{{-4., {RGBColor[0., 0., 0.5], AbsoluteThickness[0.25]}}, 
{-5., {RGBColor[0., 0., 0.5], AbsoluteThickness[0.25]}}}

Follow the template

Plot[x^2+3x-4, {x,-5,5},
    Frame->True, Axes->False,

Bob Hanlon
Chantilly, VA  USA

  • Prev by Date: Re: compiling
  • Next by Date: Re: Columns in a text page
  • Previous by thread: GridLines - Color of GridLines
  • Next by thread: Re: GridLines - Color of GridLines