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

Function Initialize

vg/vg.go:101–105  ·  view source on GitHub ↗

Initialize sets all of the canvas's values to their initial values.

(c Canvas)

Source from the content-addressed store, hash-verified

99// Initialize sets all of the canvas's values to their
100// initial values.
101func Initialize(c Canvas) {
102 c.SetLineWidth(Points(1))
103 c.SetLineDash([]Length{}, 0)
104 c.SetColor(color.Black)
105}
106
107type Path []PathComp
108

Callers 5

NewTitleFunction · 0.92
newCanvasFunction · 0.92
NewWithFunction · 0.92
NewFunction · 0.92
NewWithFunction · 0.92

Calls 4

PointsFunction · 0.70
SetLineWidthMethod · 0.65
SetLineDashMethod · 0.65
SetColorMethod · 0.65

Tested by

no test coverage detected