MathGroup Archive 2001

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

Search the Archive

Re: GridLines at each Tickmark


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?