Commit 9d8d0181 authored by Moreau Nicolas's avatar Moreau Nicolas
Browse files

show cursor position on x axis

parent 14214d27
...@@ -1186,13 +1186,13 @@ var SAMPPNGPublishControl = (function (Control) { ...@@ -1186,13 +1186,13 @@ var SAMPPNGPublishControl = (function (Control) {
toptitle = ""; toptitle = "";
} }
else if (_origin.startsWith("CASA")) { else if (_origin.startsWith("CASA")) {
xtitle = "Frequency (Ghz) - " + _specsys; xtitle = "Frequency (GHz) - " + _specsys;
ytitle = "Flux density (" + _bunit + ")"; ytitle = "Flux density (" + _bunit + ")";
coeff = Math.PI / 180. / 4.86e-6; coeff = Math.PI / 180. / 4.86e-6;
toptitle = "B: " + round(_bmaj*coeff, 1) + "x" + round(_bmin*coeff, 1) + " PA " + round(_bpa, 0) + "°"; toptitle = "B: " + round(_bmaj*coeff, 1) + "x" + round(_bmin*coeff, 1) + " PA " + round(_bpa, 0) + "°";
} }
else if (_origin.startsWith("GILDAS")) { else if (_origin.startsWith("GILDAS")) {
xtitle = "Frequency (Ghz)"; xtitle = "Frequency (GHz)";
ytitle = "Flux density (" + _bunit + ")"; ytitle = "Flux density (" + _bunit + ")";
toptitle = ""; toptitle = "";
} }
...@@ -1568,6 +1568,7 @@ var SAMPPNGPublishControl = (function (Control) { ...@@ -1568,6 +1568,7 @@ var SAMPPNGPublishControl = (function (Control) {
title: { title: {
text: xtitle text: xtitle
}, },
crosshair : true,
reversed : true, reversed : true,
events: { events: {
setExtremes : function(event){ setExtremes : function(event){
...@@ -1784,6 +1785,7 @@ var SAMPPNGPublishControl = (function (Control) { ...@@ -1784,6 +1785,7 @@ var SAMPPNGPublishControl = (function (Control) {
title: { title: {
text: xtitle text: xtitle
}, },
crosshair : true,
reversed : false, reversed : false,
}, },
yAxis: { yAxis: {
......
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