>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

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