charts: switched from bullet operator to multiplication sign for numbers
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 17 Jun 2015 08:12:35 +0000 (10:12 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 17 Jun 2015 19:23:57 +0000 (21:23 +0200)
The previous switch to pango used the bullet operator for the display
of scientific numbers in charts. Now the numbers are displayed in the
form: 1.5x10^5 instead as 1.5.10^5.

src/math/chart-geometry.c

index 1265a61eb872a1713813d406ba80096251acb916..f74c0aaf9ca31a5ef98fef5682c629d436a62c90 100644 (file)
@@ -138,7 +138,7 @@ chart_get_ticks_format (const double lower, const double interval,
          /* log10(0.2E9) = 8.30, log10(0.5E9) = 8.69, log10(1.0E9) = 9    */
          /* 0.2 and 0.5 need one decimal more. For stability subtract 0.1 */
          nrdecs = MIN(8,(int)(ceil(logshift-logintv-0.1)));
-         format_string = xasprintf("%%.%dlf&#8901;10<sup>%d</sup>",nrdecs,logshift);
+         format_string = xasprintf("%%.%dlf&#215;10<sup>%d</sup>",nrdecs,logshift);
        }
     }
   else /* logmax and logintv are < 0 */
@@ -153,7 +153,7 @@ chart_get_ticks_format (const double lower, const double interval,
        {
          logshift = (int)logmax-1;
          nrdecs = MIN(8,(int)(ceil(logshift-logintv-0.1)));
-         format_string = xasprintf("%%.%dlf&#8901;10<sup>%d</sup>",nrdecs,logshift);
+         format_string = xasprintf("%%.%dlf&#215;10<sup>%d</sup>",nrdecs,logshift);
        }
     }
   *scale = pow(10.0,-(double)logshift);