[GRASS-dev] [GRASS GIS] #1049: optional histogram sidebar for legends

GRASS GIS trac at osgeo.org
Fri Feb 7 21:47:15 PST 2014


#1049: optional histogram sidebar for legends
------------------------------+---------------------------------------------
 Reporter:  hamish            |       Owner:  grass-dev@…              
     Type:  enhancement       |      Status:  new                      
 Priority:  minor             |   Milestone:  7.0.0                    
Component:  Display           |     Version:  svn-trunk                
 Keywords:  d.legend, ps.map  |    Platform:  All                      
      Cpu:  All               |  
------------------------------+---------------------------------------------

Comment(by hamish):

 it shouldn't be too hard:

 look at how many pixels tall the FP legend is drawn on the display, then
 get freq. data from 'r.stats nsteps=', so one value per screen line, scale
 max width to equal the width of the legend box, then draw a series of
 color= horizontal lines on the display connected to the left size of the
 legend (other side from the text). -f is already used so I guess -d for
 'distribution'.

 Is there any demand for cumulative? or is histogram enough?


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1049#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list