[GRASS-dev] d.histogram: x axis ticks labels fixed
Hamish
hamish_b at yahoo.com
Sun Jan 27 04:00:14 EST 2008
Markus Neteler wrote:
> the x axis ticks in d.histogram are often completey messed
> up, especially for FP maps with range 0..1.0
bug report for this:
http://intevation.de/rt/webrt?serial_num=1977
(note Paul had posted a patch there some months ago)
> I have hacked display/d.histogram/bar.c
> -> line 116 etc
> to get readable output for most FP maps (before there wasn't).
I've done a quick test and it looks good. nice!
Resizing the xmon window recalculates the tick placement, if you want
to do a lot of testing quickly.
> I have also added a fix (line 321) to enable FP number output for
> small range maps, e.g. (NC OSGeo data set):
If I convert elevation.dem to a 0.0-1.0 FP map, the x axis tick labels
are all still "0". :(
#spearfish
r.mapcalc elev.norm="(elevation.dem - 1066.) / (1840-1066.)"
d.histogram elev.norm
Before we spend too much more time on this module, were there plans to
reimplement the module as a wxPython program using one of the python
plotting libs?
'd.histogram -q' seems to be broken. (was a quiet flag removed from
r.stats?)
cheers,
Hamish
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the grass-dev
mailing list