Skip to content

Commit

Permalink
waffle
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jan 10, 2025
1 parent f2274b6 commit 60bfb7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ Plot.raster(vapor, {
fill: Plot.identity,
width: 360,
height: 180,
x1: -180,
y1: 90,
x2: 180,
y2: -90,
x1: -180, y1: 90, x2: 180, y2: -90,
interpolate: "barycentric",
blur: 10,
clip: nation
Expand All @@ -51,10 +48,7 @@ This option is not restricted to geographic shapes. For example, to show the val

```js
Plot.raster({
x1: -1,
x2: 1,
y1: -1,
y2: 1,
x1: -1, x2: 1, y1: -1, y2: 1,
fill: (x, y) => Math.atan2(y, x),
clip: {
type: "Polygon",
Expand All @@ -65,7 +59,9 @@ Plot.raster({
}).plot({ width: 300, aspectRatio: 1 })
```

Waffle mark improvements.
The interactive **tip** associated with a [waffle mark](https://observablehq.com/plot/marks/waffle) is now anchored to the “center” of the visual representation of the associated datum. That center depends on the shape that is referenced. For fun, here’s a chart from out unit tests showing these anchoring points for various amounts of waffling. Baffling!

<img src="./img/waffle-pointer-fractional.png" width="672" alt="waffle mark with the anchor position of each datum marked with its value">

---

Expand Down
Binary file added img/waffle-pointer-fractional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60bfb7a

Please sign in to comment.