Commit 027f9ab5 authored by Tom Dwelly's avatar Tom Dwelly
Browse files

added info stamp to canvas

parent f603cc3f
......@@ -662,7 +662,23 @@ function plotData() {
ctx.stroke();
ctx.closePath();
// write the plate-mjd-fiberid in the top left hand corner
{
var plate = parseInt(document.getElementById("pipeParams_PLATE").innerHTML);
var mjd = parseInt(document.getElementById("pipeParams_MJD").innerHTML);
var fiberid = parseInt(document.getElementById("pipeParams_FIBERID").innerHTML);
var run2d = document.getElementById("pipeParams_RUN2D").innerHTML;
ctx.font = "18px Arial";
ctx.textAlign = "left";
ctx.beginPath();
var str_label = ("0000" + plate).slice(-4) + "-" + mjd + "-" + ("0000" + fiberid).slice(-4) + " (" + run2d + ")";
ctx.fillText(str_label, 5.0+xsize*0.005, 10.0+ysize*0.01);
ctx.stroke();
ctx.closePath();
ctx.font = "14px Arial";
ctx.textAlign = "center";
}
//now draw wavelengths of common lines
if ( document.getElementById("ToggleLines").checked )
{
......
Markdown is supported
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