[GRASS-dev] color tables
glynn at gclements.plus.com
Thu Aug 27 17:29:14 EDT 2009
Markus Neteler wrote:
> On Thu, Aug 27, 2009 at 6:19 PM, Dylan Beaudette<debeaudette at ucdavis.edu> wrote:
> > On Thursday 27 August 2009, paolo wrote:
> >> On Wed, 26 Aug 2009 21:22:16 -0400, Helena Mitasova
> >> <hmitaso at unity.ncsu.edu>
> >> wrote:
> >> > http://skagit.meas.ncsu.edu/~helena/grasswork/grasscontrib/r.colors.html
> >> > this just uses your rescaled png images.
> >> Quite useful - +1 for me.
> >> pc
> > +1 from me as well. I really like the mini-images next to the color scheme
> > name.
> An option might be to make a local Makefile hack to substitute part
> of the generated HTML file with a replacement including these images.
Try overriding the default rule with:
sed 's!^<DD><b>\([a-z0-9.]*\)</b>:!<DD><img width="80" height="12" src="Colortable_\1_i.png"><b>\1</b>:!' $@ > $@.tmp
mv -f $@.tmp $@
Or you could just put the images into the static part of the file.
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev