----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 37


> Dear Grass Users,
> 
> Has anybody written a shell script (Grass 4.0) that produces a
> more attractive and flexible legend than d.legend seems capable
> of?  
> 
> For example, I have a d.e.m. that I am displaying as a
> continuously graded grey-scale image (from 0m to 150m as 70 to 220 grey
> intensity) and I would like, in a separate frame at the bottom or side,
> to display a continuously graded legend labeled with elevations 
> at, say, 25m intervals.
> 
> Some sort of control over the portion of
> the colour table to display in the legend would be nice, and
> with 151 'separate categories' I don't want d.legend to label
> every one and put a little box around it. 

Peter,

	There is an alternative to create a such "continuous graded legend" in
stead of using d.legend.

	(1) cd $LOCATION/cats to look at your category file and find out the 
range of the category number (for example, 0 ~ 150};
	(2) Use v.mkgrid to create a single row and 150 (maximum category num)
column grids, label the grids from the left (0) to the right (150);
        (3) run v.to.rast to convert the vetor grid map to the raster format;
	(4) copy the original color table (from $LOCATION/colr directory) of
your raster map to the color table of newly created raster grid map;
	(5) use d.frame -c and d.frame -s to craete and select a new frame at
the bottom of your displayed raster map;
	(6) Select correct region setting and d.rast to display the grid raster
as a simulated continuous graded legend.

	This process takes some time in the vector process, but it will work ok.

----------
X-Sun-Data-Type: default-app
X-Sun-Data-Description: default
X-Sun-Data-Name: signature
X-Sun-Content-Lines: 15



****************************************************************************

 #    #    ##    #    #   ####      Wang Song  (wang)
 #    #   #  #   ##   #  #    #     
 #    #  #    #  # #  #  #          Center for Advanced Spatial Technologies
 # ## #  ######  #  # #  #  ###     12 Ozark Hall
 ##  ##  #    #  #   ##  #    #     University of Arkansas
 #    #  #    #  #    #   ####      Fayetteville, AR 72701

INTERNET:  wang@cast.uark.edu      Tel: (501) 575-6159
                                   FAX: (501) 575-3846

***************************************************************************

