Skip to content

Commit 7c9378e

Browse files
committed
Update CHANGELOG
1 parent 49177a4 commit 7c9378e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
*Not yet released. These are forthcoming changes in the main branch.*
66

7-
The new [raster mark](./README.md#raster) generates a raster image from spatial samples. For example, here is a gridded digital elevation model (DEM) of Maungawhau, R’s `volcano` dataset:
7+
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

99
[<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)
1010

@@ -14,19 +14,19 @@ Plot.raster(volcano.values, {width: volcano.width, height: volcano.height}).plot
1414

1515
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).
1616

17-
[<img src="./img/ca55.png" width="650" alt="A map showing the varying intensity of the magnetic field as periodically observed from an airplane flying in an approximate grid pattern">](https://observablehq.com/@observablehq/plot-raster)
17+
[<img src="./img/ca55.webp" width="650" alt="A map showing the varying intensity of the magnetic field as periodically observed from an airplane flying in an approximate grid pattern">](https://observablehq.com/@observablehq/plot-raster)
1818

1919
```js
2020
Plot.plot({
2121
width: 640,
2222
height: 484,
2323
inset: 4,
2424
x: {tickFormat: "s"},
25-
y: {reverse: true, tickFormat: "s", ticks: 5},
25+
y: {tickFormat: "s", ticks: 5},
2626
color: {type: "diverging", legend: true},
2727
marks: [
28-
Plot.raster(ca55, {x: "GRID_EAST", y: "GRID_NORTH", fill: "MAG_IGRF90", interpolate: "barycentric"}),
29-
Plot.dot(ca55, {x: "GRID_EAST", y: "GRID_NORTH", r: 0.75, fill: "currentColor"})
28+
Plot.raster(ca55, {x: "LONGITUDE", y: "LATITUDE", fill: "MAG_IGRF90", interpolate: "barycentric"}),
29+
Plot.dot(ca55, {x: "LONGITUDE", y: "LATITUDE", r: 0.75, fill: "currentColor"})
3030
]
3131
})
3232
```

img/ca55.png

-563 KB
Binary file not shown.

img/ca55.webp

102 KB
Binary file not shown.

0 commit comments

Comments
 (0)