Skip to content

Commit 173b0e0

Browse files
committed
all: remove descent padding from horizontal axis
1 parent b4fdc26 commit 173b0e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+196
-197
lines changed

axis.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ type horizontalAxis struct {
235235
// size returns the height of the axis.
236236
func (a horizontalAxis) size() (h vg.Length) {
237237
if a.Label.Text != "" { // We assume that the label isn't rotated.
238-
h += a.Label.TextStyle.FontExtents().Descent
239238
h += a.Label.TextStyle.Height(a.Label.Text)
240239
h += a.Label.Padding
241240
}

plotter/testdata/bubbles_golden.png

18 Bytes
-60 Bytes

plotter/testdata/contour_golden.png

84 Bytes
-658 Bytes

plotter/testdata/functions_golden.png

230 Bytes
-107 Bytes
-182 Bytes
-79 Bytes
589 Bytes

0 commit comments

Comments
 (0)