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

GRASS GIS trac at osgeo.org
Wed Jun 15 17:58:08 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:7 lazaa]:
 > > > Added flag {{{-b}}} and option {{{brdcolor}}} and {{{bgcolor}}} to
 draw background. Also added option{{{font_size}}} as requested. Code was
 separeted from main.c to background.c and draw.c. For background purpose
 in case of {{{-d}}} flag (histogram) added function calc_histogram in

 Tested, it works. However, the code is not maintainable like this, you
 have too large overlap between `draw` and `background` functions. I
 suggest to merge those functions and use ifs and put some parts into
 separate functions. Also check during compilation for warnings, there were
 a couple of them, probably not serious, but better to fix them.

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

More information about the grass-dev mailing list