Hi Ashley, There are a family of scripts that does this, or almost. yes? go/help gridxy So, try this: yes? use etopo120However it makes lines at the grid points, not the edges. And if the X axis is a modulo axis, and the plot crosses the end of the axis as it's defined, then some of the plot is unmarked by the grid. yes? use etopo120Here's an example of a simple script that defines variables based on xboxlo and ybolxo to get the outlines of the grid boxes. With a little work it could be made more general to overlay a grid on any plot. See if it's enough to get you started. use etopo120 shade/x=-10:30/y=-10:20 rose ! Define variables with the box outlines. If x is a modulo axis, define its range explicitly. yes? let xx = xboxlo[gx=rose,x=-15:33] yes? let yy = yboxlo[gy=rose] ! Contour with levels set a bit outside the range of the plot ! so we get all the edges. ! Set the levels to draw every degree, unlabeled, ! and every 10 degrees, dark lines with labels. ! ! (-20,40,1,-3) every degree, -3 means no label ! LINE(-20,40,1) solid lines at all levels (default is dash for negative values) ! (-20,40,10,-1) every 10 degrees, -1 means integer labels ! DARK(-20,40,10) Make the 10-degree contours dark lines. ! Vertical lines at each x edge contour/over/nolab/color=black/lev=(-20,40,1,-3)(-20,40,10,-1)LINE(-20,40,1)DARK(-20,40,10) xx+(yy*0) ! Horizontal lines at each y edge contour/over/nolab/color=black/lev=(-30,40,1,-3)(-30,40,10,-1)LINE(-30,40,1)DARK(-30,40,10,-1) yy+(xx*0) (Also see the script mask_outline.jnl for some related ideas) Ansley Ashley Watson wrote: Hi ferreters, |