scale-grey
Discrete greyscale colour/fill scale.
start and end bound the grey range in [0, 1].
Usage
scale-grey(
..args,
)Parameters
| Parameter | Default | Description |
|---|---|---|
..args |
Named arguments forwarded to the colour/fill scale (e.g. start, end, name, limits, labels). |
Returns
Deferred scale spec consumed by scales.
Examples
Colour groups along a discrete greyscale ramp.
#let d = ((x: 1, y: 1, g: "a"), (x: 2, y: 2, g: "b"), (x: 3, y: 3, g: "c"))
#plot(
data: d,
mapping: aes(x: "x", y: "y", colour: "g"),
layers: (geom-point(size: 3pt),),
scales: scales(colour: scale-grey(start: 0.1, end: 0.8)),
width: 10cm,
height: 6cm,
)