From: Friedrich Beckmann Date: Wed, 17 Jun 2015 08:12:35 +0000 (+0200) Subject: charts: switched from bullet operator to multiplication sign for numbers X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=dc93fae2746573f1e71d93fbc297b48dc0c32b90;p=pspp charts: switched from bullet operator to multiplication sign for numbers 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. --- diff --git a/src/math/chart-geometry.c b/src/math/chart-geometry.c index 1265a61eb8..f74c0aaf9c 100644 --- a/src/math/chart-geometry.c +++ b/src/math/chart-geometry.c @@ -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⋅10%d",nrdecs,logshift); + format_string = xasprintf("%%.%dlf×10%d",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⋅10%d",nrdecs,logshift); + format_string = xasprintf("%%.%dlf×10%d",nrdecs,logshift); } } *scale = pow(10.0,-(double)logshift);