Skip to content

Commit

Permalink
plotter: apply gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
sbinet committed Jan 7, 2019
1 parent c882b8d commit 18d01e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotter/line.go
Expand Up @@ -72,7 +72,7 @@ func (pts *Line) Plot(c draw.Canvas, plt *plot.Plot) {

if pts.FillColor != nil && len(ps) > 0 {
minY := trY(plt.Y.Min)
fillPoly := []vg.Point{vg.Point{X: ps[0].X, Y: minY}}
fillPoly := []vg.Point{{X: ps[0].X, Y: minY}}
switch pts.StepStyle {
case PreStep:
fillPoly = append(fillPoly, ps[1:]...)
Expand Down

0 comments on commit 18d01e4

Please sign in to comment.