graph/layout: update for changes in gonum/plot@v0.8.1

This commit is contained in:
Dan Kortschak
2020-11-04 11:13:58 +10:30
parent b721908ce4
commit 39eb35733e
8 changed files with 51 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ func (p render) Plot(c draw.Canvas, plt *plot.Plot) {
panic(err)
}
for i := range l.TextStyle {
l.TextStyle[i] = draw.TextStyle{Font: fnt, XAlign: draw.XCenter, YAlign: -0.33}
l.TextStyle[i] = draw.TextStyle{Font: fnt, XAlign: draw.XCenter, YAlign: -0.25}
}
l.Plot(c, plt)