Commit 153c4eb2 authored by Iker Hurtado's avatar Iker Hurtado
Browse files

Several minor improvements

parent a4bc2337
......@@ -1152,6 +1152,7 @@
subcategoryField.appendChild(createOption('Phonon dispersion'));
subcategoryField.appendChild(createOption('Phonon DOS'));
subcategoryField.appendChild(createOption('Specific heat'));
subcategoryField.appendChild(createOption('Helmholtz free energy'));
break;
}
}
......@@ -4021,7 +4022,7 @@
//this.addText(-3, this.plotRangeY-3, this.yLabel, 'end', 'statisticsviewer');
this.yLabelText = svg.addText(this.svg, 0, 0, this.yLabel, 'middle', 'axis-steps-big');
this.yLabelText.setAttribute('transform','translate(15,'+(this.plotRangeY/2+this.margins.top)+') rotate(-90)');
this.yLabelText.setAttribute('transform','translate(13,'+(this.plotRangeY/2+this.margins.top)+') rotate(-90)');
svg.addText(this.plotArea, this.plotRangeX/2, this.margins.bottom-1, this.xLabel, 'middle', 'axis-steps-big');
if (xSteps !== null){
......@@ -4036,7 +4037,7 @@
let i = 1;
while(this.yMax*i > this.yMin) {
svg.addLine(this.plotArea, 0, this.transformY(this.yMax*i), -3, this.transformY(this.yMax*i), 1);
let numberText = (Math.abs(this.yMax*i) > 1000 ? (this.yMax*i).toExponential() : this.yMax*i );
let numberText = (Math.abs(this.yMax*i) >= 10000 ? (this.yMax*i).toExponential() : this.yMax*i );
svg.addText(this.plotArea,-5, this.transformY(this.yMax*i)+3, numberText,
'end', 'statisticsviewersteps');
i--; //console.log(i, this.yMax*i, this.yMin);
......@@ -4422,6 +4423,7 @@
<div class="wyckoff-pos-calc-field" >
<b><span info-sys-data="free-wyckoff-parameters">Wyckoff sites</span></b>
(fractional coordinates)
<div class="wyckoff-pos-calc-table"> </div>
</div>
......@@ -6576,7 +6578,7 @@
class HelmholtzPlotter extends PlotterBase{
constructor() {
super({left: 50, right: 16, top: 10, bottom: 32});
super({left: 60, right: 16, top: 10, bottom: 32});
this.tooltip;
}
......
......@@ -118,6 +118,6 @@
</div>
<!-- <script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script>-->
<script type="text/javascript" src="bundle.js" charset="utf-8"></script>
<script type="text/javascript" src="bundle-es5.js" charset="utf-8"></script>
</body>
</html>
......@@ -97,6 +97,7 @@ function _setCurrentPage(pageId){
subcategoryField.appendChild(createOption('Phonon dispersion'));
subcategoryField.appendChild(createOption('Phonon DOS'));
subcategoryField.appendChild(createOption('Specific heat'));
subcategoryField.appendChild(createOption('Helmholtz free energy'));
break;
}
}
......
......@@ -67,7 +67,7 @@ class PlotterBase{
//this.addText(-3, this.plotRangeY-3, this.yLabel, 'end', 'statisticsviewer');
this.yLabelText = svg.addText(this.svg, 0, 0, this.yLabel, 'middle', 'axis-steps-big');
this.yLabelText.setAttribute('transform','translate(15,'+(this.plotRangeY/2+this.margins.top)+') rotate(-90)');
this.yLabelText.setAttribute('transform','translate(13,'+(this.plotRangeY/2+this.margins.top)+') rotate(-90)');
svg.addText(this.plotArea, this.plotRangeX/2, this.margins.bottom-1, this.xLabel, 'middle', 'axis-steps-big');
if (xSteps !== null){
......@@ -82,7 +82,7 @@ class PlotterBase{
let i = 1;
while(this.yMax*i > this.yMin) {
svg.addLine(this.plotArea, 0, this.transformY(this.yMax*i), -3, this.transformY(this.yMax*i), 1);
let numberText = (Math.abs(this.yMax*i) > 1000 ? (this.yMax*i).toExponential() : this.yMax*i );
let numberText = (Math.abs(this.yMax*i) >= 10000 ? (this.yMax*i).toExponential() : this.yMax*i );
svg.addText(this.plotArea,-5, this.transformY(this.yMax*i)+3, numberText,
'end', 'statisticsviewersteps');
i--; //console.log(i, this.yMax*i, this.yMin);
......
......@@ -7,7 +7,7 @@ let PlotterBase = require('../common/PlotterBase.js');
class HelmholtzPlotter extends PlotterBase{
constructor() {
super({left: 50, right: 16, top: 10, bottom: 32});
super({left: 60, right: 16, top: 10, bottom: 32});
this.tooltip;
}
......
......@@ -309,6 +309,7 @@ class TreeLeafViewer{
<div class="wyckoff-pos-calc-field" >
<b><span info-sys-data="free-wyckoff-parameters">Wyckoff sites</span></b>
(fractional coordinates)
<div class="wyckoff-pos-calc-table"> </div>
</div>
......
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