From 587ada510d7aa1b9012a405435a632e4fa9725c9 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Thu, 5 Aug 2021 17:05:01 +0200 Subject: [PATCH] plot: test GlyphBoxes of title and axes' labels --- plot_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plot_test.go b/plot_test.go index 7b197773..30888a7d 100644 --- a/plot_test.go +++ b/plot_test.go @@ -133,11 +133,15 @@ func TestDrawGlyphBoxes(t *testing.T) { cmpimg.CheckPlot(func() { p := plot.New() + p.Title.Text = "My very very very\nlong Title" p.X.Min = 0 p.X.Max = 10 p.Y.Min = 0 p.Y.Max = 10 + p.X.Label.Text = "X-axis" + p.Y.Label.Text = "Y-axis" + f1 := plotter.NewFunction(func(x float64) float64 { return 5 }) f1.LineStyle.Color = color.RGBA{R: 255, A: 255}