Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
669c75e4
Commit
669c75e4
authored
Jul 27, 2020
by
Markus Scheidgen
Browse files
Fixed dos value scaling after archive contains correct normalization.
parent
15cb97c9
Pipeline
#79455
skipped with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/material-mod/DOSPlotter.js
View file @
669c75e4
...
...
@@ -31,7 +31,7 @@ let util = require('../common/util.js');
const
E_MIN
=
-
6
;
const
E_MAX
=
11
;
const
E_FACTOR
=
1.602176565
e
-
19
;
const
DOSVALUE_FACTOR
=
1.602176565
e
-
4
9
;
const
DOSVALUE_FACTOR
=
1.602176565
e
-
1
9
;
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
'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment