Reposted with additions…

 

>Oh but you tempted me, and I cannot do it, how do I change the colour of

>the grid. Nothing I have tried under symbol-colour has worked, and I

>cannot find anything on the wiki.

>thanks

>Andrew

 

The following code changes the colour (and shape) of the grid lines, but not the grid coordinate text (which frustrates me). 

I notice that my grid IS under the text.

Compiled with 5.3.9, but it is the same code I have been using since Dec 2007, and it has worked fine on every version since.

As you can see, grid bottom does place the grid below both the cave passage and label entities.

Bruce

#CODE TO CHANGE GRID SYMBOLS FROM CROSS HAIRS TO CONTINUOUS LINES

#---------------------------------------------------------------

code metapost

def s_hgrid (expr xpos, ypos, xsize, ysize) =

  pickup PenD;

  draw (

    if xpos < 0: 0 else: -xsize/2 fi, 0

  ) -- (

    if xpos > 0: 0 else: xsize/2 fi, 0

  ) withcolor 0.1black+0.5white;

  draw (

    0, if ypos < 0: 0 else: -ysize/2 fi

  ) -- (

    0, if ypos > 0: 0 else: ysize/2 fi

  ) withcolor 0.1black+0.5white;

enddef;

endcode