scale-fill-hue
Discrete equally-spaced hue fill scale.
Fill counterpart of scale-colour-hue.
Usage
scale-fill-hue(
..args,
)Parameters
| Parameter | Default | Description |
|---|---|---|
..args |
Returns
Scale object consumed by plot.
Examples
Default hue wheel shown as a swatch strip via geom-rect.
#let levels = ("a", "b", "c", "d", "e", "f", "g", "h")
#let d = levels.enumerate().map(((i, k)) => (
xmin: i, xmax: i + 1, ymin: 0, ymax: 1, k: k,
))
#plot(
data: d,
mapping: aes(xmin: "xmin", xmax: "xmax", ymin: "ymin", ymax: "ymax", fill: "k"),
layers: (geom-rect(),),
scales: (scale-fill-hue(),),
guides: guides(fill: guide-none()),
width: 8cm,
height: 1cm,
)