SV: [GRASS-user] Ps.map vlegend

Hamish hamish_b at yahoo.com
Thu Mar 3 07:03:05 EST 2011


Hamish wrote:
> one idea: try adding clone vareas, but with smaller pwidth

sorry, use scale*2 with that, not pwidth (pattern line width)

> and an impossible SQL where clause so nothing is ever drawn to
> the map. Then use those mini-patterns in the vlegend. 
> Use 'lpos 0' for the real areas so that they don't get
> added to the legend.



> if you are comfortable tweaking and recompiling C code
> there are other options...

the patch I posted was wrong, this one will remove the probably-too much
pattern shrinking in the vector legend:

Index: ps/ps.map/ps_vlegend.c
===================================================================
--- ps/ps.map/ps_vlegend.c      (revision 45422)
+++ ps/ps.map/ps_vlegend.c      (working copy)
@@ -186,7 +186,7 @@
                        !(color_none(&vector.layer[i].fcolor))) {
 
                        if (vector.layer[i].pat != NULL) {      /* use pattern */
-                           sc = 0.5 * vector.layer[i].scale;   /* half scale */
+                           sc = vector.layer[i].scale;
 
                            /* load pattern */
                            eps_bbox(vector.layer[i].pat, &llx, &lly, &urx,


Hamish


ps- often patterns look a lot better when it's actually printed, even
when it looks bad on screen.


      


More information about the grass-user mailing list