From 172d5c5300ece9e310d97bbe12bff96e57a30382 Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 20 Mar 2018 21:26:59 -0400 Subject: Correct ending condition of Plot method --- grid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.go b/grid.go index 6b0a511..e1f2b03 100644 --- a/grid.go +++ b/grid.go @@ -360,7 +360,7 @@ func (g GridType) Plot(pdf *Fpdf, xMin, xMax float64, count int, fnc func(x floa var x, delta, drawX0, drawY0, drawX1, drawY1 float64 delta = (xMax - xMin) / float64(count) x = xMin - for j := 0; j < count; j++ { + for j := 0; j <= count; j++ { if j == 0 { drawX1 = g.X(x) drawY1 = g.Y(fnc(x)) -- cgit v1.2.1-24-ge1ad