[Therion] Grid and Label clipping

Bruce bruce at tomo.co.nz
Wed Nov 16 08:29:17 CET 2011


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

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


More information about the Therion mailing list