Skip to content

Commit f4037f7

Browse files
committed
log10 scale fix
1 parent 99b43fa commit f4037f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webglplot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ export default class WebGLPlot {
196196
uscale,
197197
false,
198198
new Float32Array([
199-
line.scaleX * this.gScaleX,
199+
line.scaleX * this.gScaleX * (this.gLog10X ? 1 / Math.log(10) : 1),
200200
0,
201201
0,
202-
line.scaleY * this.gScaleY * this.gXYratio,
202+
line.scaleY * this.gScaleY * this.gXYratio * (this.gLog10Y ? 1 / Math.log(10) : 1),
203203
])
204204
);
205205

0 commit comments

Comments
 (0)