Re: GridLines at each Tickmark
- To: mathgroup at smc.vnet.net
- Subject: [mg31785] Re: GridLines at each Tickmark
- From: bghiggins at ucdavis.edu (Brian Higgins)
- Date: Sun, 2 Dec 2001 04:24:59 -0500 (EST)
- References: <9ua3oi$192$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Ryan, Here is one possibility: p = Plot[Sin[x], {x, 0, 6\[Pi]}, DisplayFunction -> Identity]; xTicks = First[Ticks /. AbsoluteOptions[p, Ticks]] /. {x_Real, rem__} -> x; yTicks = Last[Ticks /. AbsoluteOptions[p, Ticks]] /. {y_Real, rem__} -> y; Show[p, Frame -> True, GridLines -> {xTicks, yTicks}, DisplayFunction -> $DisplayFunction] Cheers, Brian rrosario11 at my-deja.com (Ryan R. Rosario) 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