[GRASS5] [bug #4037] (grass) d.vect.thematic: fails to generate a
legend for >20 custom_breaks
Michael Barton
michael.barton at asu.edu
Thu Jan 26 09:31:53 EST 2006
Thanks for fixing this Daniel. The legend is very restricted due to the
limitations of d.graph. (b) sounds like the best to me also.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
> From: Daniel Calvelo <dca.gis at gmail.com>
> Date: Thu, 26 Jan 2006 00:55:19 -0500
> To: Request Tracker <grass-bugs at intevation.de>
> Cc: <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] [bug #4037] (grass) d.vect.thematic: fails to generate a
> legend for >20 custom_breaks
>
> [Maciek found a misspecification in d.vect.thematic: the
> legend-drawing code is designed for a small number of categories;
> going from 20 up, it feeds negative coordinates into d.graph, which
> chokes and spits]
>
> What is the right solution?
>
> a) allow >20 items in the legend, shrinking it to fit all of them
> b) make the legend with only 20 items (say the 10 lower, a mark and
> the 10 upper) with a warning
> c) signal >20 items as an error or warning and do not output the legend
> d) other suggestion
>
> I like b). c) is of course the easiest. a) is a little involved (since
> this is sh) and it would allow for legends of arbitrary number of
> items, which makes unreadably absurd legends possible.
>
> Daniel.
>
> -- Daniel Calvelo Aros
>
More information about the grass-dev
mailing list