         .attr("id", "botLtitle")
         .attr("fill", "blue")
   botsvg.append("text")
-        .attr("x", (left[2]+right[2])/2)
+        .attr("x", (left[2]+right[3])/2)
         .attr("y", pad.top/2)
         .text("")
         .attr("id", "botRtitle")

# function that does all of the work
draw = (data) ->

  # dimensions of SVG
  w = 1350
  h = 450
  botLw = 650
  pad = {left:60, top:20, right:40, bottom: 40}
  innerPad = 4
  wInner = []
  wInner[0] = w - pad.left - pad.right

               .enter()
               .append("text")
               .text((d) -> d)
               .attr("x", left[j] - pad.left*0.05)
               .attr("y", (d) -> yScale[j](d))
               .attr("class", "alignright")

  # y-axis titles
  ylab = ["LOD score", "LOD score", data.phenotype, data.phenotype]
