[Therion] Grid and Label clipping

Bruce bruce at tomo.co.nz
Wed Nov 16 08:12:28 CET 2011


 

>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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20111116/7c96ef2f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 8599 bytes
Desc: image002.jpg
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20111116/7c96ef2f/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 6046 bytes
Desc: image003.jpg
URL: <http://mailman.speleo.sk/pipermail/therion/attachments/20111116/7c96ef2f/attachment-0001.jpg>


More information about the Therion mailing list