-
Notifications
You must be signed in to change notification settings - Fork 42
/
config_hp.js
29 lines (24 loc) · 896 Bytes
/
config_hp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const DIR = "data_hp/";
// Get data (as a list of [x,y] pairs) from an FR file
const tsvParse = fr => d3.tsvParseRows(fr).slice(2,482)
.map(r=>r.map(d=>+d));
// Add a watermark to the graph.
function watermark(svg) {
let wm = svg.append("g")
.attr("transform", "translate("+(pad.l+W/2)+","+(pad.t+H/2-20)+")")
.attr("opacity",0.2);
// wm.append("image")
// .attrs({x:-64, y:-64, width:128, height:128, "xlink:href":URL});
wm.append("text")
.attrs({x:0, y:40, "font-size":40, "text-anchor":"middle"})
.text("sample graphs");
}
const max_channel_imbalance = 5;
const default_channels = ["R"];
const num_samples = 5;
const scale_smoothing = 0.2;
const targets = [
{ type:"Neutral" , files:["IEF Neutral"] },
{ type:"Preference", files:['IEF "Harman"'] }
];
// const init_phones = [ "HD650", "IEF Neutral Target" ];