Published
Edited
Mar 21, 2022
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
CDFplot(slsprofile,"BestCouplingLoss")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bslocs
Insert cell
Insert cell
Insert cell
hexLinks(bslocs[0], 500)
Insert cell
hexLinks(bslocs[0], 500, true)
Insert cell
Plot.link(hexLinks(bslocs[1], 500, true), {
x: "X",
x2: "X2",
y: "Y",
y2: "Y2",
stroke: "red",
strokeDasharray: [3, 5]
}).plot()
Insert cell
Plot.link(hexLinks(bslocs[1], 500, false), {
x: "X",
x2: "X2",
y: "Y",
y2: "Y2",
stroke: "red",
strokeDasharray: [3, 5]
}).plot()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// viewof x = {
// var result = [];
// bslocs
// .slice(0, 19)
// .forEach((d) =>
// result.push.apply(result, getHexCorners(d.X, d.Y, itucfg.ISD))
// );

// return Plot.plot({
// x: { ticks: false },
// grid: false,
// width: 500,
// marks: [Plot.link(result, { x1: "X", y1: "Y", x2: "X2", y2: "Y2" })]
// });
// }
Insert cell
printTable(newslsprofile.slice(0, 10))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// sorted = slsprofile.sort((a, b) => d3.ascending(a.RxNodeID, b.RxNodeID))
Insert cell
Insert cell
nwgridplot = function (bscenters, isd, fill) {
var fillparam = {};
// if (fill != undefined) fillparam = fill;
return Plot.link(layoutgrids(bscenters, isd), {
x1: "X",
y1: "Y",
x2: "X2",
y2: "Y2",
fill: "grey",
stroke: "lightgrey"
});
}
Insert cell
Insert cell
cellmarks = {
let radius = itucfg.ISD / Math.sqrt(3);
let marks = d3.map(d3.range(6), (d) => triangle(d, radius));
return marks;
return Plot.plot({
marks: marks,
x: { zero: true, domain: [-2000, 2000] },
y: { domain: [-2000, 2000], zero: true },
grid: true
});
}
Insert cell
Plot.plot({
marks: [triangle(2, 1730)],
color: { domain: ["black"], range: ["black"] }
})
Insert cell
function triangle(indx, radius) {
let stepsize = (indx * Math.PI) / 3;
let startangle = Math.PI / 6 + stepsize;
let stopangle = Math.PI / 6 + Math.PI / 3 + stepsize;
return Plot.area([0, 0], {
x1: [0, 0],
y1: [0, 0],
x2: [radius * Math.cos(startangle), radius * Math.cos(stopangle)],
y2: [radius * Math.sin(startangle), radius * Math.sin(stopangle)],
fill: "grey",
fillOpacity: 0.5,
stroke: indx % 2 == 0 ? "black" : "",
mixBlendMode: "color-burn"
});
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
printTable(bslocs.slice(0, 10))
Insert cell
Insert cell
Insert cell
Insert cell
printTable(slsprofile.slice(0,10))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more