//############################### add Y-axis name upper left ##################################
xloc=left[0]-pad.left*0.65;// xloc and yloc together locate the title lable in the middle of y axis.
yloc=(top[0]+bottom[0])/2;
axislabels.append("text").text("probe position (bp)").attr("x",xloc).attr("y",yloc).attr("transform","rotate(270,"+xloc+","+yloc+")").style("text-anchor","middle").attr("fill",titlecolor);
axislabels.append("text").text("Gene position (bp)").attr("x",xloc).attr("y",yloc).attr("transform","rotate(270,"+xloc+","+yloc+")").style("text-anchor","middle").attr("fill",titlecolor);
//############################### add Y-axis name lower #######################################