        .attr("d", botlodcurve(randomChr)(data.lod[randomChr].pos))
        .attr("class", "thickline")
        .attr("id", "detailedLod")
-       .attr("stroke", "blue")
+       .attr("stroke", blue)
        .style("pointer-events", "none")
   botsvg.append("text")
         .attr("x", (left[1] + right[1])/2)
         .attr("y", pad.top/2)
         .text("Chromosome #{randomChr}")
         .attr("id", "botLtitle")
-        .attr("fill", "blue")
+        .attr("fill", blue)
   botsvg.append("text")
         .attr("x", (left[2]+right[3])/2)
         .attr("y", pad.top/2)
         .text("")
         .attr("id", "botRtitle")
-        .attr("fill", "blue")
+        .attr("fill", blue)
 
   XaxisGrp[1].selectAll("empty")
               .data(xScale[1][randomChr].ticks(10))

               .attr("x", xpos[j])
               .attr("y", (top[j]+bottom[j])/2)
               .attr("transform", "rotate(270,#{xpos[j]},#{(top[j]+bottom[j])/2})")
               .attr("fill", "blue")

  # title on top panel
  topsvg.append("text")
     .text(data.phenotype)
     .attr("x", (left[0] + right[0])/2)
     .attr("y", pad.top/2)
     .attr("fill", "blue")

  # x-axis labels
  xlab = ["Chromosome", "Position (cM)"]

         .attr("cy", (d) -> yScale[2](d))
         .attr("r", 6)
         .attr("fill", (d,i) ->
            return blue if male[i]
            red)
         .attr("stroke", "black")
         .attr("stroke-width", "2")
         .on("mouseover", efftip)
