Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: GridLines

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55216] Re: [mg55202] GridLines
  • From: "Christoph Lhotka" <lhotka at astro.univie.ac.at>
  • Date: Thu, 17 Mar 2005 03:28:34 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi !

There is no global way to define your grid lines, but as you can see in the
Help Browser, you can specify a style for each grid line (like color or
thickness).

GridLines->{{x1,style1},{x2,style2},...}

You can also define any function of min and max of the data range, which
creates a List of grid lines on the fly:

GridLines->func

For example

In[..]:=grids[min_, max_]:= 
  Table[{i, {RGBColor[.5, .5, 1]}}, {i, min, max, (max -
min)/10},GridLines->grids]

In[..]:=Plot[Sin[t],{t,0,2pi}]
Out[..]:=...

will plot light blue grid lines in x and y direction..


On Wed, 16 Mar 2005 05:36:45 -0500 (EST)
 Steve Gray <stevebg at adelphia.net> wrote:
> 1. Help says that the default color of GridLines is light blue, but mine
> are black. ?? LightBlue
> would be much better.
> 2. Is there a way to control the color of GridLines in Show? There seems to
> be no such thing as
> GridStyle, GridColor, GridLineStyle, etc.
> 
> Thank you for any info.
> 


-- Christoph Lhotka --
University of Vienna
Institute for Astronomy
Tuerkenschanzstr. 17 
1180 Vienna, Austria
fon. +43.1.4277.518.41
mail. lhotka at astro.univie.ac.at


  • Prev by Date: Histogram and BinCounts inconsistency
  • Next by Date: Re: Sum
  • Previous by thread: Re: GridLines
  • Next by thread: Re: GridLines