[GRASS-dev] d.histogram problem [bug #1977]

Michael Barton michael.barton at asu.edu
Thu May 17 02:32:17 EDT 2007


I'll try it out and see.

Michael


On 5/16/07 1:52 PM, "Paul Kelly" <paul-grass at stjohnspoint.co.uk> wrote:

> Attached is a patch that seems to solve the worst of the d.histogram
> problems for me. I.e.
> * the tick spacing is done correctly for large number of bins in a
> floating point map
> * Range boundaries are calculated correctly (not off by one) and printed
> to 3 significant figures rather than being truncated to integers
> * For integer maps the cell value covered by each bar is printed in the
> centre of the bar rather than to the left-hand side of it
> 
> But I haven't touched pie.c so it will only be fixed for bar graphs. And
> in general the code of the whole program is terribly convoluted and there
> could definitely be other subtle errors lurking in there I think. Also the
> text printing, ticks etc. could definitely be tidied up and made prettier.
> 
> But does it solve the problems others were having?
> 
> Paul

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list