Commit 669c75e4 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed dos value scaling after archive contains correct normalization.

parent 15cb97c9
Pipeline #79455 skipped with stage
......@@ -31,7 +31,7 @@ let util = require('../common/util.js');
const E_MIN = -6;
const E_MAX = 11;
const E_FACTOR = 1.602176565e-19;
const DOSVALUE_FACTOR = 1.602176565e-49;
const DOSVALUE_FACTOR = 1.602176565e-19;
class DOSPlotter extends InteractivePlotterBase {
......@@ -92,7 +92,7 @@ class DOSPlotter extends InteractivePlotterBase {
let stepX = (this.plotRangeX*xSteps[i])/xSteps[xSteps.length-1];
svg.addLine(this.axisGroup, stepX, 0, stepX, 3, 1);
let x = xSteps[i];
x = (Math.abs(x) >= 10000 || Math.abs(x) <= 0.0001) ? x.toExponential(1) : x.toFixed(3);
x = (Math.abs(x) >= 10000 || Math.abs(x) <= 0.0001) ? x.toExponential(1) : parseFloat(x.toFixed(3));
svg.addText(this.axisGroup, stepX, 13,
(i === 0 ? '0' : x), 'middle', 'axis-steps-smaller');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment