Plot.plot({
x: { type: "linear" },
y: { type: "log" },
marks: [
Plot.areaY(defect_spectrum, {
x: "xdata",
y1: 1,
y2: "ydata",
fill: "steelblue",
fillOpacity: 0.3
}),
Plot.lineY(defect_spectrum, {
x: "xdata",
y: "ydata",
stroke: "steelblue"
}),
Plot.ruleX([0]),
Plot.ruleY([1])
]
})