[GRASS-dev] [GRASS GIS] #2380: d.legend "use" argument makes legend disappear

GRASS GIS trac at osgeo.org
Mon Jul 28 04:04:26 PDT 2014

#2380: d.legend "use" argument makes legend disappear
 Reporter:  cmbarton     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.1.0                    
Component:  Display      |     Version:  svn-trunk                
 Keywords:  d.legend     |    Platform:  Unspecified              
      Cpu:  Unspecified  |  

Comment(by hamish):

 Replying to [comment:1 cmbarton]:
 > I find that you must put this list in quotes "7321, 7300,7100,7000,6955"
 > of 7321, 7300,7100,7000,6955  as indicated in the manual.

 are the spaces real? there shouldn't be any around the commas.

 > Unfortunately, this turns the legend into a series of discrete colored
 > instead of a smooth gradient.

 That's exactly what the use= option does; it uses those discrete values.
 E.g. for a logarithmic scale.

 > What I'd like to do is make a legend that encompasses all values but
 > is a nice set of ticks marked at regular decimal intervals (10 or

 Generally the way to do that is to pick a min,max for range= near a whole
 number (I don't think it needs to be exact?) then set the labelnum= option
 appropriately to get the ticks on nice clean divisions.

 ps.map uses a completely different logic for selecting the tick mark
 values; I tend to prefer d.legend's way as it gives the cartographer more
 control, but using ps.map may automagically give you what you're looking


Ticket URL: <http://trac.osgeo.org/grass/ticket/2380#comment:5>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list