 # plot recombination fractions/LOD scores for all pairs of chromosomes
 
 margin = {top: 25, right: 25, bottom: 10, left:50}
-width = 720
+lwidth = 720
 height = 720
+rwidth = 400
 zmax = 12 # maximum LOD score
 
 log2 = (x) -> Math.log(x)/Math.log(2.0)

  cells.on("mouseout", -> mouseout())

  mouseout = ->
    svg.selectAll("#tooltip").remove()
    hilit[0].remove()
    hilit[1].remove()


      .attr("height", yscale.rangeBand())
      .attr("id", (d) -> "r#{d.row}c#{d.col}")
      .style("fill", (d) -> zscale(d.value))


  # area on right, top, containing info on marker pair, rec frac, and LOD
  temp = lwidth+margin.left+margin.right
  xrscale = d3.scale.linear().domain([0, 100]).range([temp, temp+rwidth])
  rtheight = (height-margin.top-margin.bottom)*0.4
  rbheight = (height - margin.top - margin.bottom) - rtheight
  yrtscale = d3.scale.linear().domain([0, 100]).range([rtheight, 0])
  temp = rtheight + margin.top + margin.bottom
  yrbscale = d3.scale.linear().domain([0, 100]).range([rbheight+temp, temp])

  cells.on("mouseover", (d) -> mouseover(d))

