You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+41-10Lines changed: 41 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Plot.plot({
37
37
})
38
38
```
39
39
40
-
The same data, as filled contours in projected coordinates:
40
+
The same data, with a smidge of blur, as filled contours in projected coordinates:
41
41
42
42
[<imgsrc="./img/ca55-contours.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)
43
43
@@ -51,7 +51,7 @@ Plot.plot({
51
51
})
52
52
```
53
53
54
-
Naturally, the raster and contour mark support Plot’s [projection system](./README.md#projection-options), allowing spatial samples to be shown in any geographic projection and in conjunction with other geographic data. The *equirectangular* projection is the natural choice for this gridded global water vapor dataset from [NASA Earth Observations](https://neo.gsfc.nasa.gov/view.php?datasetId=MYDAL2_M_SKY_WV&date=2022-11-01).
54
+
Naturally, the raster and contour mark are compatible with Plot’s [projection system](./README.md#projection-options), allowing spatial samples to be shown in any geographic projection and in conjunction with other geographic data. The *equirectangular* projection is the natural choice for this gridded global water vapor dataset from [NASA Earth Observations](https://neo.gsfc.nasa.gov/view.php?datasetId=MYDAL2_M_SKY_WV&date=2022-11-01).
55
55
56
56
[<imgsrc="./img/water-vapor.png"width="650"alt="A map of global atmospheric water vapor, showing a higher concentration of water vapor near the equator">](https://observablehq.com/@observablehq/plot-raster)
57
57
@@ -79,23 +79,54 @@ Plot.plot({
79
79
})
80
80
```
81
81
82
-
TK random-walk for interpolating categorical data.
82
+
The raster and contour mark also support sampling continuous spatial functions *f*(*x*, *y*). For example, here is the famous Mandelbrot set, with color encoding the number of iterations before the point escapes:
83
83
84
-
The *fill* and *fillOpacity* channels may alternatively be specified as continuous functions *f*(*x*, *y*) to be evaluated at each pixel centroid of the raster grid (without interpolation). TODO Show Mandelbrot instead.
85
-
86
-
[<imgsrc="./img/heatmap.png"width="640"alt="A heatmap of the trigonometric function atan2(y, x)">](https://observablehq.com/@observablehq/plot-raster)
[zr, zi] = [zr * zr - zi * zi + x, 2* zr * zi + y];
94
+
if (zr * zr + zi * zi >4) return n;
95
+
}
96
+
},
97
+
x1:-2,
98
+
y1:-1.164,
99
+
x2:1,
100
+
y2:1.164,
101
+
pixelSize:0.5
102
+
})
103
+
]
104
+
})
90
105
```
91
106
92
-
TODO show spike map example.
107
+
The [vector mark](./README.md#vector) now supports the **shape** constant option; the built-in shapes are *arrow* (default) and *spike*. A custom shape can also be implemented, returning the corresponding SVG path data for the desired shape. The new [spike convenience constructor](./README.md#plotspikedata-options) creates a vector suitable for spike maps. The vector mark also now supports an **r** constant option to set the shape radius.
93
108
94
-
The [vector mark](./README.md#vector) now supports the **shape** constant option. The built-in shapes are *arrow* (default) and *spike*. A custom shape can also be implemented, returning the corresponding SVG path data for the desired shape. The new [spike convenience constructor](./README.md#plotspikedata-options) creates a vector suitable for spike maps. The vector mark also now supports an **r** constant option to further customize the shape.
109
+
[<imgsrc="./img/spike-map.webp"width="640"alt="A spike map of U.S. county population">](https://observablehq.com/@observablehq/plot-vector)
The new [geoCentroid transform](./README.md#plotgeocentroidoptions) and [centroid initializer](./README.md#plotcentroidoptions) compute the spherical and projected planar centroids of geometry, respectively.
97
128
98
-
Diverging scales now correctly handle descending domains. When the stack **order** option is used without a *z* channel, a helpful error message is now thrown. The **clip** option *frame* now correctly handles band scales. Using D3 7.8.1, generated SVG path data is now rounded to three decimal points to reduce output size.
129
+
Diverging scales now correctly handle descending domains. When the stack **order** option is used without a *z* channel, a helpful error message is now thrown. The **clip** option *frame* now correctly handles band scales. Using D3 7.8, generated SVG path data is now rounded to three decimal points to reduce output size.
0 commit comments