                        d3.select("rect#mouseover1").remove())
                       
 
+    # right image panel
     panels[i][1].append("g").attr("id", "n_imgrect_#{i}")
              .selectAll("empty")
              .data(llList[i])

  yScaleImg = []
  zScaleImg = []
  for i in [0...data.nll.length]
    d3.select("div#heatmap_fig")
      .append("h3")
      .text("Chromosome #{i+1}")

                  .range([darkBlue, "white"])
                  .clamp(true)

    # title text
    for j in [0..1]
      panels[i][j].append("text").attr("id", "loglik#{i}#{j}")
               .text("")
               .attr("x", w/2)
               .attr("y", -pad.top*0.25)
               .attr("text-anchor", "middle")
               .attr("dominant-baseline", "middle")
               .attr("fill", labelcolor)
      panels[i][j].append("text")
               .text(["Nicola", "Karl"][j])
               .attr("x", w/2)
               .attr("y", -pad.top*0.75)
               .attr("text-anchor", "middle")
               .attr("dominant-baseline", "middle")
               .attr("fill", maincolor)

    # left image panel
    panels[i][0].append("g").attr("id", "n_imgrect_#{i}")
             .selectAll("empty")
             .data(llList[i])
