[GRASS-dev] [GRASS GIS] #3013: support background and border for d.legend
GRASS GIS
trac at osgeo.org
Mon Jun 13 05:29:19 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 lazaa):
Replying to [comment:2 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.
It seems that I have to draw background first :(. Currently all
calculation is in main function. I would move all calculation into a new
function and add one parameter to decide whether to draw or
not. First time I would call the function to get position, second time to
draw it. New function should be in separate file or it doesn't matter?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3013#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list