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

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

Search the Archive

Re: GridLines at each Tickmark

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31780] Re: GridLines at each Tickmark
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Sun, 2 Dec 2001 04:24:52 -0500 (EST)
  • References: <9ua3oi$192$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Ryan,


gr=Plot[x,{x,0,10},Frame\[Rule]True,Axes\[Rule]False,
    PlotRange\[Rule]{{0,10.7},{1,9.3}}]

grdlns=Map[Cases[#,{_,x_?NumericQ,__}\[Rule]x,{1}]&,
      Last/@AbsoluteOptions[gr, FrameTicks],{2}][[1,{1,2}]]


Show[gr, GridLines\[Rule]grdlns]

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"Ryan R. Rosario" <rrosario11 at my-deja.com> wrote in message
news:9ua3oi$192$1 at smc.vnet.net...
> Hey -
>
> How can I get Mathematica to draw gridlines at each tickmark on a 2D
> plot without having to manually input each point? I am trying to
> create a "graph paper like" grid. Is this possible?
>
> Thanks,
> Ryan
>




  • Prev by Date: RE: GridLines at each Tickmark
  • Next by Date: Re: Weird trigonometric integral and Simplification question
  • Previous by thread: RE: GridLines at each Tickmark
  • Next by thread: Bessel Function Zeros at 0 Not Given?