MCPcopy Index your code
hub / github.com/gonum/plot / Dashes

Function Dashes

plotutil/plotutil.go:110–116  ·  view source on GitHub ↗

Dashes returns the ith default dash pattern, wrapping if i is less than zero or greater than the max number of dash patters in the DefaultDashes slice.

(i int)

Source from the content-addressed store, hash-verified

108// than the max number of dash patters
109// in the DefaultDashes slice.
110func Dashes(i int) []vg.Length {
111 n := len(DefaultDashes)
112 if i < 0 {
113 return DefaultDashes[i%n+n]
114 }
115 return DefaultDashes[i%n]
116}

Callers 3

TestMultiCanvasFunction · 0.92
AddLinesFunction · 0.85
AddLinePointsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestMultiCanvasFunction · 0.74