[GRASS-SVN] r68488 - grass/trunk/display/d.histogram

svn_grass at osgeo.org svn_grass at osgeo.org
Sun May 22 13:47:00 PDT 2016


Author: annakrat
Date: 2016-05-22 13:47:00 -0700 (Sun, 22 May 2016)
New Revision: 68488

Modified:
   grass/trunk/display/d.histogram/bar.c
Log:
d.histogram: fix tick labels, see #2463, author Adam Laza

Modified: grass/trunk/display/d.histogram/bar.c
===================================================================
--- grass/trunk/display/d.histogram/bar.c	2016-05-22 20:25:47 UTC (rev 68487)
+++ grass/trunk/display/d.histogram/bar.c	2016-05-22 20:47:00 UTC (rev 68488)
@@ -307,6 +307,7 @@
 	    if (nodata && i == dist_stats->mincat)
 		sprintf(txt, "null");
 	    else if (is_fp) {
+		dmin = range_dmin + i * (range_dmax - range_dmin) / nsteps;
 		if ((range_dmax - range_dmin) <= 1.0)
 		    sprintf(txt, "%.2f", dmin / (double)tic_unit);
 		else



More information about the grass-commit mailing list