[GRASS-dev] [GRASS GIS] #3014: Add ticks to continuous raster legend
GRASS GIS
trac at osgeo.org
Sat Jun 11 20:41:09 PDT 2016
#3014: Add ticks to continuous raster legend
--------------------------+---------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.3.0
Component: Display | Version: svn-trunk
Resolution: | Keywords: d.legend, gsoc2016, cartography
CPU: Unspecified | Platform: All
--------------------------+---------------------------------------------
Comment (by annakrat):
Thanks, I tested it and it works very well. I have couple of suggestions:
* if you compare the default before and after this change, the white
border is now transparent, so that should be changed back. Also if you
test categorical data, the black/white border is switched (inner is black,
should be white). The current default legend size is wider than the
previous one, that should be fixed as well.
* drawing ticks should be optional, implement for example '-t' flag.
Question is if it should draw the ticks by default or not. Let's switch
them off by default for now.
* the vertical centering of the labels and ticks is not quite perfect, I
wonder if it could be improved
* I thought more about the names of the new parameters and decided
`label_values` and `label_step` would fit more to `labelnum`
* the `-c` flag should always hide all the numbers, it is actually useful
mostly with categorical data
* I think when option `label_value` or `label_step` is used, `labelnum`
should be ignored. So the min max values won't be displayed. I hope we
could get some feedback from other users what kind of behavior would be
more natural.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3014#comment:4>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list