Public
Edited
May 13, 2023
1 fork
1 star
Insert cell
Insert cell
Plot.plot({
height: 630,
x: {ticks: 10, tickFormat: "+f"},
y: {ticks: 10, tickFormat: "+f"},
color: {type: "log", scheme: "magma"},
marks: [
Plot.raster({
fill: (x, y) =>
(1 + (x + y + 1) ** 2 * (19 - 14 * x + 3 * x ** 2 - 14 * y + 6 * x * y + 3 * y ** 2)) *
(30 + (2 * x - 3 * y) ** 2 * (18 - 32 * x + 12 * x * x + 48 * y - 36 * x * y + 27 * y ** 2)),
x1: -2,
y1: -2.5,
x2: 2,
y2: 1.5,
pixelSize: 4
}),
Plot.ruleX([0], {strokeOpacity: 0.2}),
Plot.ruleY([0], {strokeOpacity: 0.2}),
Plot.frame()
]
})
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