Skip to content

Commit ba97297

Browse files
committed
Update CHANGELOG
1 parent 7c9378e commit ba97297

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66

77
The new [raster mark](./README.md#raster) generates a raster image from spatial samples. For example, here is a gridded digital elevation model of Maungawhau, R’s [`volcano` dataset](./test/data/volcano.json):
88

9-
[<img src="./img/volcano.png" width="640" alt="A heatmap of Maungawhau’s topography, showing the circular caldera and surrounding slopes">](https://observablehq.com/@observablehq/plot-raster)
9+
[<img src="./img/volcano.webp" width="640" alt="A heatmap of Maungawhau’s topography, showing the circular caldera and surrounding slopes">](https://observablehq.com/@observablehq/plot-raster)
1010

1111
```js
12-
Plot.raster(volcano.values, {width: volcano.width, height: volcano.height}).plot()
12+
Plot.plot({
13+
color: {legend: true, label: "Height (m)"},
14+
marks: [
15+
Plot.raster(volcano.values, {width: volcano.width, height: volcano.height}),
16+
Plot.frame()
17+
]
18+
})
1319
```
1420

1521
For non-gridded or sparse data, the raster mark implements a variety of spatial interpolation methods to populate the raster grid. The *barycentric* interpolation method, shown below with data from the [Great Britain aeromagnetic survey](https://www.bgs.ac.uk/datasets/gb-aeromagnetic-survey/), uses barycentric coordinates from a Delaunay triangulation of the samples (small black dots).

img/volcano.png

-335 KB
Binary file not shown.

img/volcano.webp

25.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)