Plot.plot({
width: 1100, height: 300, marginLeft: 78, marginBottom: 50,
style: {fontSize: "18px"},
x: {label: "lag j", domain: [0, 40]}, y: {label: "weight w(j)", domain: [-0.15, 1.05], grid: true},
color: {domain: ["Uniform", "Bartlett", "Parzen", "Quadratic spectral"],
range: ["#9a9a9a", "#2f4b7c", "#e09f3e", "#8b2635"]},
marks: [
Plot.ruleY([0]),
Plot.line(kern, {x: "lag", y: "w", stroke: "kernel", strokeWidth: 3, curve: "step-after", filter: d => d.kernel === "Uniform"}),
Plot.line(kern, {x: "lag", y: "w", stroke: "kernel", strokeWidth: 3, filter: d => d.kernel !== "Uniform"})
]
})