[GRASS-dev] Re: [GRASS GIS] #124: d.legend: apply arbitrary labels
to a smooth floating-point colorbar
GRASS GIS
trac at osgeo.org
Thu Apr 17 04:07:22 EDT 2008
#124: d.legend: apply arbitrary labels to a smooth floating-point colorbar
--------------------------+-------------------------------------------------
Reporter: epatton | Owner: hamish
Type: enhancement | Status: assigned
Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: colorbar, d.legend
--------------------------+-------------------------------------------------
Comment (by hamish):
Using the range= and labelnum= options you should be able to get the look
you are after.
{{{
d.legend range=0,-200
}}}
then you get labelnum=5 ticks at: 0,-50,-100,-150,-200
* adjust your color rules so that they cover the full range
* with the range= option do max,min instead of min,max to flip the legend
vertically (or use the -f flag)
see also ps.map's colorbar legends. They work the other way and try to
fall on round numbers automatically. Both ways have their merits, but I
guess I hear less complaints about the ps.map way. (but less people use
that, so who knows)
Hamish
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/124#comment:3>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/
More information about the grass-dev
mailing list