We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7585e3 commit 00f2eefCopy full SHA for 00f2eef
renderers/gonumplot.go
@@ -51,7 +51,7 @@ func (r *GonumPlot) SetLineWidth(length vg.Length) {
51
//
52
// The initial dash pattern is a solid line.
53
func (r *GonumPlot) SetLineDash(pattern []vg.Length, offset vg.Length) {
54
- array := make([]float64, len(pattern))
+ array := make([]float64, 0, len(pattern))
55
for _, dash := range pattern {
56
array = append(array, float64(dash*mmPerPt))
57
}
0 commit comments