{
const p = plotter({ width: 400, height: 600, yDomain: [-15, 15], grid: false });
p.line_segment(-2, 5, 7, 4, { stroke: 'magenta', width: 5, interactive: true });
p.line(2, 8, { interactive: true });
p.polyline([
{ x: 2, y: 18 },
{ x: 0, y: 12 },
{ x: 3, y: 8 },
{ x: 1, y: 4 },
{ x: 5, y: -6 },
{ x: 2, y: -16 },
], { stroke: 'red', width: 3, interactive: true, curve: true });
p.polygon([
{ x: -2, y: 2 },
{ x: 4, y: 2 },
{ x: -1, y: -2 },
], { fill: 'yellow', interactive: true });
p.polygon([
{ x: -8, y: -2 },
{ x: -4, y: -1 },
{ x: -2, y: -2 },
{ x: -2, y: -4 },
{ x: -5, y: -6 },
], { fill: 'green', stroke: '#789', width: 4, interactive: true });
p.circle(5, 7, 2, { stroke: 'gray', fill: 'blue', opacity: 0.1, interactive: true });
p.point(-8, 4, { interactive: true });
p.text('P (-8, 4)', -7.5, 4, { size: 12, anchor: 'start', baseline: 'middle', interactive: true});
return p.node;
}