Skip to content

Commit 664b833

Browse files
committed
link examples
1 parent b6d7570 commit 664b833

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Year: **Current (2025)** · [2024](./CHANGELOG-2024.md) · [2023](./CHANGELOG-20
88

99
The [**clip** mark option](https://observablehq.com/plot/features/marks#clip) now supports GeoJSON objects 🌎 in addition to the named *frame* and *sphere* clipping methods, allowing the visual extent of marks to be limited to arbitrary polygons. For instance, this Voronoi mesh of world airports is clipped to land boundaries:
1010

11-
[<img src="./img/airports-clip-land.png" width="708" alt="a map of world airports with a voronoi mesh clipped to land">](XXXXX)
11+
[<img src="./img/airports-clip-land.png" width="708" alt="a map of world airports with a Voronoi mesh clipped to land">](https://observablehq.com/@observablehq/plot-world-airports)
1212

1313
```js
1414
Plot.plot({
@@ -24,7 +24,7 @@ Plot.plot({
2424

2525
The GeoJSON object passed to the **clip** option is rendered as a [`clipPath` element](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath) using the same path data that a [geo mark](https://observablehq.com/plot/marks/geo) would produce, respecting the plot’s top-level **projection** option, if any. For performance, `clipPath` elements are shared by marks clipped with the same GeoJSON object. For example, the [raster mark](https://observablehq.com/plot/marks/raster) and [contour mark](https://observablehq.com/plot/marks/contour) below show atmospheric water vapor measurements across the United States from [NASA Earth Observations](https://neo.gsfc.nasa.gov/view.php?datasetId=MYDAL2_M_SKY_WV); both marks are clipped to the nation’s boundary, censoring the (absurd) values that would otherwise be interpolated between Alaska, Southern California, and Hawai’i.
2626

27-
[<img src="./img/vapor-clip-us.png" width="708" alt="a map of water vapor measurements">](XXXXX)
27+
[<img src="./img/vapor-clip-us.png" width="708" alt="a map of water vapor measurements in the United States">](https://observablehq.com/@observablehq/plot-us-water-vapor)
2828

2929
```js
3030
Plot.raster(vapor, {
@@ -42,7 +42,7 @@ Plot.raster(vapor, {
4242

4343
The **clip** mark option can also be used to clip against arbitrary polygons, not just geographic boundaries. For example, to show the value of [Math.atan2](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2) over the unit circle:
4444

45-
[<img src="./img/unit-circle-atan2.png" width="332" alt="the value of Math.atan2 on the unit circle">](XXXXX)
45+
[<img src="./img/unit-circle-atan2.png" width="332" alt="the value of atan2 across the unit disc, encoded as color">](https://observablehq.com/@observablehq/plot-color-angle)
4646

4747
```js
4848
Plot.raster({

0 commit comments

Comments
 (0)