Re: GridLines at each Tickmark
- To: mathgroup at smc.vnet.net
- Subject: [mg31793] Re: GridLines at each Tickmark
- From: Tom Burton <tburton at cts.com>
- Date: Sun, 2 Dec 2001 04:25:13 -0500 (EST)
- References: <9ua3oi$192$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Sure, Suppose this the plot in question: p = Plot[x, {x, -1, 1}]; t = Ticks /. AbsoluteOptions[p]; extract the positions of the ticks g = Map[First, t, {2}]; (* or g = t[[All,All,1]] *) and feed these to the GridLines option: Show[p, GridLines -> g] On Sat, 1 Dec 2001 08:18:26 +0000 (UTC), in comp.soft-sys.math.mathematica you wrote: >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 Tom Burton