We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 901dd6c + 6c6b2a0 commit c9c39a3Copy full SHA for c9c39a3
src/plot/formats.typ
@@ -128,7 +128,7 @@
128
0
129
}
130
131
- let ee = calc.pow(10, calc.abs(exponent + 1))
+ let ee = calc.pow(10.0, calc.abs(exponent + 1))
132
if exponent > 0 {
133
value = value / ee * 10
134
} else if exponent < 0 {
tests/plot/format/ref/1.png
5.68 KB
tests/plot/format/test.typ
@@ -37,3 +37,15 @@
37
plot.add(data)
38
})
39
40
+
41
+#test-case({
42
+ plot.plot(
43
+ size: (8, 4),
44
+ x-min: -1e10,
45
+ x-max: +1e10,
46
+ x-tick-step: 1e10,
47
+ y-format: none,
48
+ x-format: plot.formats.sci, {
49
+ plot.add(data)
50
+ })
51
+})
0 commit comments