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

GRASS GIS trac at osgeo.org
Wed Jun 22 09:07:44 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:21 wenzeslaus]:
 > In `r.colors.matplotlib` I try to do the conversion from the Matploitlib
 objects to GRASS color rules. The GRASS rules are linearly interpolated in
 between (when used) which is what happens in the Matplotlib objects I
 think.

 Sorry I did not read entirely your manual page, the way you proceed (a
 proportional mode rule file) is definitely better than what I tried to do
 (translating the viscm color ramp to 255 RGB values).
 >
 > As far as I understand, that's unrelated to the above. This is RGB
 triplet format issue (`0-1 -> 0-255`). I hope I'm doing it right in
 `r.colors.matplotlib`:
 >
 Anyhow, isn't it a minor issue ? IIUC it's a matter of approximating via
 int() rather than round() or considering 256 steps rather than 255. As a
 colorblind I don't feel concerned by a difference of 1/255 of a value !-)

 To put it in a nutshell : {{{r.color.matplotlib}}} does the job the way it
 should.

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



More information about the grass-dev mailing list