Skip to content

Commit

Permalink
plot: test GlyphBoxes of title and axes' labels
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed Aug 6, 2021
1 parent 4fe2543 commit 587ada5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 587ada5

Please sign in to comment.