anchor.diff:              .append("svg")
               .attr("width", w)
               .attr("height", h);
  +
       //Prepare DataSet
       var dataset = [];
   
  
positive.code:                 }
              });
  
      //Create the legend
      if (type == 1) {  //Legend for Mutations
          var legend = svg.selectAll(".legend")
                  .data(mutationTypes)
                  .enter().append("g")
                  .attr("class", "legend")
                  .attr("transform", function(d, i) { return "translate(110, " + (30 + i * 15) + ")"; });
          legend.append("path")
                  .attr("width", 18)
                  .attr("height", 18)
                  .attr("d", d3.svg.symbol()
                          .size(40)
                          .type(function(d, i) {
                              switch(i) {
                                  case 0: return symbol(0);
                                  case 1: return symbol(1);
                              };
                          })
                  )
                  .attr("fill", function (d, i) {
                      switch (i) {
                          case 0: return fillTypes[0];
                          case 1: return fillTypes[1];
                      }
                  })
                  .attr("stroke", function (d, i) {
                      switch (i) {
                          case 0: return strokeTypes[0];
                          case 1: return strokeTypes[1];
                      }
                  })
          legend.append("text")
                  .attr("dx", ".75em")
                  .attr("dy", ".35em")
                  .style("text-anchor", "front")
                  .text(function(d, i) {
                      switch (i) {
                          case 0: return mutationTypes[0];
                          case 1: return mutationTypes[1];
                      }
                  });
      } else {  //Legend for Gistic Copy Number
          var legend = svg.selectAll(".legend")
                  .data(gisticTypes)
                  .enter().append("g")
                  .attr("class", "legend")
                  .attr("transform", function(d, i) { return "translate(110, " + (30 + i * 15) + ")"; });
          legend.append("path")
                  .attr("width", 18)
                  .attr("height", 18)
                  .attr("d", d3.svg.symbol()
                          .size(40)
                          .type(function(d, i) {
                              return "circle";
                          })
                  )
                  .attr("fill", function (d, i) {
                      return "none";
                  })
                  .attr("stroke", function (d, i) {
                      switch (i) {
                          case 0: return strokeTypes[0];
                          case 1: return strokeTypes[1];
                          case 2: return strokeTypes[2];
                          case 3: return strokeTypes[3];
                          case 4: return strokeTypes[4];
                      }
                  })
                  .attr("stroke-width", function (d, i) {
                      return 1.2;
                  })
          legend.append("text")
                  .attr("dx", ".75em")
                  .attr("dy", ".35em")
                  .style("text-anchor", "front")
                  .text(function(d, i) {
                      switch (i) {
                          case 0: return gisticTypes[0];
                          case 1: return gisticTypes[1];
                          case 2: return gisticTypes[2];
                          case 3: return gisticTypes[3];
                          case 4: return gisticTypes[4];
                      }
                  });
      }
      //Axis Titles
      svg.append("text")
  
negative.code:     }
  }
  
  function drawErrorPlots(xLegend, yLegend, type) {
  
  }
  
  
  
  function drawScatterPlots(xData, yData, zData, xLegend, yLegend, type) {
      //Create Canvas
      $('#plots_tab').empty();
  