File: chart-geometry.at

package info (click to toggle)
pspp 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 66,676 kB
  • sloc: ansic: 267,210; xml: 18,446; sh: 5,534; python: 2,881; makefile: 125; perl: 64
file content (55 lines) | stat: -rw-r--r-- 4,153 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
dnl PSPP - a program for statistical analysis.
dnl Copyright (C) 2017 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation, either version 3 of the License, or
dnl (at your option) any later version.
dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program.  If not, see <http://www.gnu.org/licenses/>.
dnl
AT_BANNER([Chart Geometry])

AT_SETUP([Chart Scale])
AT_CHECK([chart-get-scale-test], [0], [ignore])
AT_CLEANUP

AT_SETUP([Chart Ticks Format])
# The 'sed' below converts, e.g. 1.5e-005 into 1.5e-05, to make the output
# format uniform for comparison.  (mingw always outputs 3-digit exponents.)
AT_CHECK([chart-get-ticks-format-test | sed 's/e\([[-+]]\)0\([[0-9]][[0-9]]\)/e\1\2/g'], [0], [dnl
lower: 1000, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 1030, ex 2: 1040
lower: 10000, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 10030, ex 2: 10040
lower: 100000, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 100030, ex 2: 100040
lower: 1e+06, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 1000030, ex 2: 1000040
lower: 1e+07, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 10000030, ex 2: 10000040
lower: 1e+08, interval: 10, nticks: 10, fs: %.0lf, scale: 1, ex: 100000030, ex 2: 100000040
lower: 0.1, interval: 0.01, nticks: 10, fs: %.2lf, scale: 1, ex: 0.13, ex 2: 0.14
lower: 0.01, interval: 0.001, nticks: 10, fs: %.3lf, scale: 1, ex: 0.013, ex 2: 0.014
lower: 0.001, interval: 0.0001, nticks: 10, fs: %.4lf, scale: 1, ex: 0.0013, ex 2: 0.0014
lower: 0.0001, interval: 1e-05, nticks: 10, fs: %.1lf&#215;10<sup>-4</sup>, scale: 10000, ex: 1.3&#215;10<sup>-4</sup>, ex 2: 1.4&#215;10<sup>-4</sup>
lower: 1e-05, interval: 1e-07, nticks: 10, fs: %.2lf&#215;10<sup>-5</sup>, scale: 100000, ex: 1.03&#215;10<sup>-5</sup>, ex 2: 1.04&#215;10<sup>-5</sup>
lower: 1e-07, interval: 1e-08, nticks: 10, fs: %.1lf&#215;10<sup>-7</sup>, scale: 1e+07, ex: 1.3&#215;10<sup>-7</sup>, ex 2: 1.4&#215;10<sup>-7</sup>
lower: -5, interval: 1, nticks: 10, fs: %.0lf, scale: 1, ex: -2, ex 2: -1
lower: -5, interval: 0.5, nticks: 10, fs: %.1lf, scale: 1, ex: -3.5, ex 2: -3.0
lower: -5, interval: 0.2, nticks: 9, fs: %.1lf, scale: 1, ex: -4.4, ex 2: -4.2
lower: -5, interval: 2, nticks: 10, fs: %.0lf, scale: 1, ex: 1, ex 2: 3
lower: -0.5, interval: 0.1, nticks: 9, fs: %.1lf, scale: 1, ex: -0.2, ex 2: -0.1
lower: 9.75e+08, interval: 5e+06, nticks: 9, fs: %.3lf&#215;10<sup>9</sup>, scale: 1e-09, ex: 0.990&#215;10<sup>9</sup>, ex 2: 0.995&#215;10<sup>9</sup>
lower: 9.7e+08, interval: 1e+07, nticks: 9, fs: %.2lf&#215;10<sup>9</sup>, scale: 1e-09, ex: 1.00&#215;10<sup>9</sup>, ex 2: 1.01&#215;10<sup>9</sup>
lower: -4e+07, interval: 1e+07, nticks: 9, fs: %.0lf&#215;10<sup>7</sup>, scale: 1e-07, ex: -1&#215;10<sup>7</sup>, ex 2: 0&#215;10<sup>7</sup>
lower: -3e+07, interval: 5e+06, nticks: 9, fs: %.1lf&#215;10<sup>7</sup>, scale: 1e-07, ex: -1.5&#215;10<sup>7</sup>, ex 2: -1.0&#215;10<sup>7</sup>
lower: 1.001e-95, interval: 2e-99, nticks: 10, fs: %.4lf&#215;10<sup>-95</sup>, scale: 1e+95, ex: 1.0016&#215;10<sup>-95</sup>, ex 2: 1.0018&#215;10<sup>-95</sup>
lower: 1.001e+98, interval: 2e+94, nticks: 10, fs: %.4lf&#215;10<sup>98</sup>, scale: 1e-98, ex: 1.0016&#215;10<sup>98</sup>, ex 2: 1.0018&#215;10<sup>98</sup>
lower: 5984, interval: 1e-05, nticks: 10, fs: %.5lf, scale: 1, ex: 5984.00003, ex 2: 5984.00004
lower: 3e+33, interval: 1e-22, nticks: 10, fs: %lg, scale: 1, ex: 3e+33, ex 2: 3e+33
lower: 3e+33, interval: 1000, nticks: 10, fs: %.8lf&#215;10<sup>33</sup>, scale: 1e-33, ex: 3.00000000&#215;10<sup>33</sup>, ex 2: 3.00000000&#215;10<sup>33</sup>
lower: 0.1, interval: 2e-42, nticks: 10, fs: %.8lf, scale: 1, ex: 0.10000000, ex 2: 0.10000000
])
AT_CLEANUP