[GRASS-dev] [bug #5243] (grass) d.vect: better random color
generation
Martin Landa
landa.martin at gmail.com
Sat Nov 18 04:59:57 EST 2006
Hi,
2006/11/18, Hamish <hamish_nospam at yahoo.com>:
> Martin Landa wrote:
> > I have tried to implement random coloring using
> > G_make_random_colours(), see the attached patch for d.vect.
>
> do multiple vector features with the same cat value have the same color?
yes, they should have the same color, e.g. (spearfish60)
d.erase;d.vect landuse dis=cat,shape -c
> general question: how to "lock-in" nice random colors once you find
> them? e.g. populate GRASSRGB attribute column to survive d.redraw and
> use with ps.map.
One of the solutions: new flag -u to update color values to GRASSRGB
column in attribute table (like in d.vect.thematic). Do you have
better idea?
>
> > Then I will also try to implement random colors based on the given
> > attribute column.
>
> how about "true" color scaling min->max like d.vect.thematic does with
> value-bands?
>
>
> cheers,
> Hamish
>
Martin
--
Martin Landa <landa.martin at gmail.com> * http://gama.fsv.cvut.cz/~landa *
More information about the grass-dev
mailing list