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

Method SetLineStyle

vg/draw/canvas.go:423–427  ·  view source on GitHub ↗

SetLineStyle sets the current line style

(sty LineStyle)

Source from the content-addressed store, hash-verified

421
422// SetLineStyle sets the current line style
423func (c *Canvas) SetLineStyle(sty LineStyle) {
424 c.SetColor(sty.Color)
425 c.SetLineWidth(sty.Width)
426 c.SetLineDash(sty.Dashes, sty.DashOffs)
427}
428
429// StrokeLines draws a line connecting a set of points
430// in the given Canvas.

Callers 10

StrokeLinesMethod · 0.95
PlotMethod · 0.80
PlotMethod · 0.80
naivePlotMethod · 0.80
PlotMethod · 0.80
DrawGlyphMethod · 0.80
DrawGlyphMethod · 0.80
DrawGlyphMethod · 0.80
DrawGlyphMethod · 0.80
DrawGlyphMethod · 0.80

Implementers 7

teeCanvasvg/tee.go
Canvasvg/vgeps/vgeps.go
Canvasvg/vgtex/canvas.go
Canvasvg/vgimg/vgimg.go
Canvasvg/vgpdf/vgpdf.go
Canvasvg/recorder/recorder.go
Canvasvg/vgsvg/vgsvg.go

Calls 3

SetColorMethod · 0.95
SetLineWidthMethod · 0.95
SetLineDashMethod · 0.95

Tested by

no test coverage detected