[GRASS-dev] [GRASS GIS] #3013: support background and border for d.legend

GRASS GIS trac at osgeo.org
Sun Jun 12 12:21:48 PDT 2016


#3013: support background and border for d.legend
-------------------------+-------------------------------------------------
  Reporter:  annakrat    |      Owner:  grass-dev@…
      Type:              |     Status:  new
  enhancement            |
  Priority:  normal      |  Milestone:  7.3.0
 Component:  Display     |    Version:  svn-trunk
Resolution:              |   Keywords:  d.legend, background, gsoc2016,
       CPU:              |  cartography
  Unspecified            |   Platform:  All
-------------------------+-------------------------------------------------

Comment (by annakrat):

 Replying to [comment:1 lazaa]:
 > I added {{{-b}}} flag to display legend background. Then {{{brdcolor}}}
 to choose border color. So far it works only for non-categoric rasters and
 displays only border color but no background. I draw background at the end
 of the script when I know position of legend, title and all labels at the
 display. But when I want draw background, the background rectangular
 overlaps all. Is there any option how to define not to overlap other
 lines? Or the only solution is to draw background rectangular first?

 Look at the other d.* modules with background - how they do it. But I am
 afraid you might have to draw it first, so you would need to do the
 computations twice.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3013#comment:2>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list