// bar plot: bp(array)
// anything before a "_" is a comment: txt_15
// Written by Guido Socher
function bp(garray){
 var n,s;
 document.write("<h2>Html bar-plot demo</h2>");
 for(var i=0;i<garray.length;i++){
 s=garray[i].toString(10);
 n=parseInt(s.replace(/^.*_/,""));
 s=s.replace(/_/,"  ");
 document.write("<p style=\"width:"+(2*n+40)+"px;background-color:#ac2;margin:2px;border:1px #999 solid;white-space:pre;\">"+s+"</p>");
 }
}


