Skip to content

Commit

Permalink
plot: add GlyphBox for plot.Plot.Title
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed Aug 6, 2021
1 parent 994ffe5 commit 4fe2543
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ func (p *Plot) DrawGlyphBoxes(c draw.Canvas) {
}

cy := padY(p, draw.Crop(c, 0, 0, xheight, 0))
cy.Max.Y -= title
for _, b := range y.GlyphBoxes(p) {
drawBox(cy, b)
}
Expand Down

0 comments on commit 4fe2543

Please sign in to comment.