function funcPlot(func, scope, N=100) {return Plot.plot({
width:400, height:400,
inset:10,
marks: [
Plot.frame(),
Plot.line(Array.apply(null, {length: N+1}).map((d,i)=>{return i}),{
x:d=>scope[0]+((scope[1]-scope[0])*d/N),
y:d=>func(scope[0]+((scope[1]-scope[0])*d/N)),
}),
Plot.axisX({ y: 0 }),
Plot.axisY({ x: 0 }),
Plot.ruleX([0]),
Plot.ruleY([0])
]
})}