Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: gridlines styles.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg51721] Re: [mg51671] gridlines styles.
  • From: "David Park" <djmp at earthlink.net>
  • Date: Sun, 31 Oct 2004 01:15:30 -0500 (EST)
  • 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




  • 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