[Therion] There's Grids then and there's Grids
Stacho Mudrak
s.m at group-s.sk
Wed Nov 28 15:41:53 CET 2007
Quoting Bruce Mutton <bruce.mutton at paradise.net.nz>:
> Ah, Stacho. Two types of grids!
> That explains part of my conundrum. Now that I know it exists I'm not sure
> what the map atlas grid might be for?
To show atlas pages layout, when "export atlas" is used.
> The other relates to the co-ordinate grid; illustrated by the attached pdfs,
> scaled at 1:1000.
> When specified as 10 10 10 I get nice continuous grids, but when specified
> as 50 50 50 or 100 100 100 (and no other changes) I get cross hairs, which
> are not too my liking.
You get 1cm cross-hairs also in 10 10 10 grid, but they are too close to each
other :) Just redefine grid symbol to receive solid grid -- i.e. add following
lines to your layout:
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
);
draw (
0, if ypos < 0: 0 else: -ysize/2 fi
) -- (
0, if ypos > 0: 0 else: ysize/2 fi
);
enddef;
endcode
Regards, S.
More information about the Therion
mailing list