         .attr('stroke', "blue")
         .attr('fill', 'none')
 
-  emissionLines: (redshiftCorrected=true) =>
+  emissionLinesdDraw: (redshiftCorrected=true) =>
     for name, line of @spectralLines
       multiplier = if redshiftCorrected then (1 + line.redshift) else 1
       @svg.append("line")

        .style("text-anchor", "end")
        .text("Flux (1E-17 erg/cm^2/s/Ang)")

    @fluxLine() if @opts.fluxLine
    @bestFitLine() if @opts.bestFitLine
    @emissionLines() if @opts.emissionLines
   
  fluxLine: =>
    fluxLine = d3.svg.line()
      .x((d, i) => @x(@subject.wavelengths[i]))
      .y((d, i) => @y(d))

      .range([@height, 0])
      .domain(d3.extent(@subject.flux))

    @svg = @opts.selector.append('svg')
        .attr('width', @opts.width - 10)
        .attr('height', @opts.height - 10)
      .append('g')
        .attr('transform', "translate(#{margin.left}, #{margin.top})")
        .call(d3.behavior.zoom().x(@x).y(@y).scaleExtent([1, 8]).on("zoom", @zoom))
    
    @xAxis = d3.svg.axis()
      .scale(@x)
