       for i of means
         means[i] /= n[i]
 
-      draw_pxgXaxis(pxgXaxis, means, genotypes, chr, sexcenter)
+      draw_pxgXaxis(means, genotypes, chr, sexcenter, male)
 
       svg.append("g").attr("id", "plotPXG").attr("class", "probe_data").attr("id","PXGpoints").selectAll("empty")
           .data(probe_data.pheno)


  # gap between chromosomes in lower plot
  chrGap = 8

  # height of marker ticks in lower panel
  tickHeight = (bottom[1] - top[1])*0.02

               d3.selectAll("#indtip").remove()
               d3.select(this).attr("r", peakRad)



    revPXG = (marker) ->
