diff options
author | Kurt <kurt.w.jung@gmail.com> | 2018-03-20 21:26:59 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2018-03-20 21:26:59 -0400 |
commit | 172d5c5300ece9e310d97bbe12bff96e57a30382 (patch) | |
tree | e449a389715af56984e9691b01a52217a9f63d09 | |
parent | 787a5891ca0647c8ee4fc0fd8851e26cbd353224 (diff) |
Correct ending condition of Plot method
-rw-r--r-- | grid.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |