diff --git a/src/plot/legend.typ b/src/plot/legend.typ index 7bbc9cd..3a69ab6 100644 --- a/src/plot/legend.typ +++ b/src/plot/legend.typ @@ -15,10 +15,10 @@ spacing: .1, // Spacing between anchor and legend item: ( radius: 0, - spacing: .05, // Spacing between items + spacing: 0, // Extra spacing between items preview: ( width: .75, // Preview width - height: .35, // Preview height + height: .3, // Preview height margin: .1 // Distance between preview and label ) ), @@ -186,7 +186,7 @@ // Draw label content(label-west, - align(left + horizon, label), + text(top-edge: "ascender", bottom-edge: "descender", align(left + horizon, label)), name: "label", anchor: "west") }, name: "item", anchor: if style.orientation == ltr { "west" } else { "north-west" }) diff --git a/tests/axes/log-mode/ref/1.png b/tests/axes/log-mode/ref/1.png index 867f075..ee22129 100644 Binary files a/tests/axes/log-mode/ref/1.png and b/tests/axes/log-mode/ref/1.png differ diff --git a/tests/chart/piechart/ref/1.png b/tests/chart/piechart/ref/1.png index f9dda76..d93ab78 100644 Binary files a/tests/chart/piechart/ref/1.png and b/tests/chart/piechart/ref/1.png differ diff --git a/tests/plot/legend/ref/1.png b/tests/plot/legend/ref/1.png index b8476e7..ddc02da 100644 Binary files a/tests/plot/legend/ref/1.png and b/tests/plot/legend/ref/1.png differ diff --git a/tests/plot/violin/ref/1.png b/tests/plot/violin/ref/1.png index bf1c137..819bc03 100644 Binary files a/tests/plot/violin/ref/1.png and b/tests/plot/violin/ref/1.png differ