Re: gridlines styles.
- To: mathgroup at smc.vnet.net
- Subject: [mg51721] Re: [mg51671] gridlines styles.
- From: "David Park" <djmp at earthlink.net>
- Date: Sat, 30 Oct 2004 03:48:18 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Sean, 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: Needs["DrawGraphics`DrawingMaster`"] Draw2D[ {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 earthlink.net http://home.earthlink.net/~djmp/ From: sean kim [mailto:sean_incali at yahoo.com] To: mathgroup at smc.vnet.net 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.] sean __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail