[GRASS-dev] [GRASS GIS] #3043: Change default color table

GRASS GIS trac at osgeo.org
Thu Jun 23 03:43:14 PDT 2016

#3043: Change default color table
  Reporter:  wenzeslaus   |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  blocker      |  Milestone:  7.2.0
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  r.colors, d.rast, rainbow
       CPU:  Unspecified  |   Platform:  Unspecified

Comment (by vincent):

 Replying to [comment:22 vincent]:
 > To put it in a nutshell : {{{r.colors.matplotlib}}} does the job the way
 it should.

 {{{r.colors.matplotlib}}} does not provide exact percent values (did I
 miss something?). So starting back from my own {{{grass_ramp.py}}} file, I
 extracted the cm_data array, then did the 0-255 > 0-100% interpolation via

 For those interested, I give in attachment the cm_data array
 (grass_ramp.txt),and the sequence of commands run in Scilab
 (viscmtograss.sce). It outputs a file which needs some cosmetics, which I
 did it in one go :

 {{{scilab-cli -f 2viscmtograss.sce && cat rgbtemp | awk '{FS=" "}''{printf
 "%s%s %s:%s:%s\n", NR-1,"%",$1,$2,$3}'>grass_0_100 && rm rgbtemp}}}

 Finally I propose to add the new "grass" color rule to the existing list
 of default ramps.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3043#comment:23>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list