Re: GridLines - Color of GridLines
- To: mathgroup at smc.vnet.net
- Subject: [mg33276] Re: [mg33250] GridLines - Color of GridLines
- From: BobHanlon at aol.com
- Date: Wed, 13 Mar 2002 03:14:44 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 3/12/02 5:33:46 AM, maxao at aol.com 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] > Needs["Graphics`Colors`"]; 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, PlotStyle->Blue, GridLines->Automatic]; 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, PlotStyle->Blue, GridLines->{ Table[{x,{GrayLevel[.7]}},{x,-4,4,2}], Table[{y,{Red}},{y,-5,15,5}]}]; Bob Hanlon Chantilly, VA USA