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

GRASS GIS trac at osgeo.org
Mon Jul 28 12:48:24 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 cmbarton):

 I thought you might be right about the space, but it turns out that it
 makes no difference. The problem is when one of the numbers in the list is
 out of range. Interestingly, the error says

 "Command 'd.legend rast=shortdomestic_dates at NeolSpread
 use=6600,6800,6900 at=5,50,7,10' failed
 Details: use=6600 out of range [6689.075, 7299.539] (extend
 with range= ?)"

 But specifying a wider range with range=? does not work. A work around for
 this issue is to use r.colors to define a color table matching the desired
 range (i.e., of even, round numbers). Then range=? works for the new range
 and use=? does not cause the legend to disappear. It would be nice if
 range=? did this without the r.colors workaround. So this part is an
 enhancement request now.

 The biggest problem from a user standpoint is that when the legend
 disappears and you have closed the command dialog (i.e., by pressing "OK",
 there is no way to get it back. Selecting "Show/hide legend" in the
 toolbar menu will not make the command dialog reappear. You can only fix
 it by closing the display and opening a new one. While perhaps not a bug
 per se, this is not desirable.

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



More information about the grass-dev mailing list