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

Function NewLinePoints

plotter/line.go:200–210  ·  view source on GitHub ↗

NewLinePoints returns both a Line and a Points for the given point data.

(xys XYer)

Source from the content-addressed store, hash-verified

198// NewLinePoints returns both a Line and a
199// Points for the given point data.
200func NewLinePoints(xys XYer) (*Line, *Scatter, error) {
201 s, err := NewScatter(xys)
202 if err != nil {
203 return nil, nil, err
204 }
205 l := &Line{
206 XYs: s.XYs,
207 LineStyle: DefaultLineStyle,
208 }
209 return l, s, nil
210}

Callers 8

TestFloatPrecisionFunction · 0.92
ExampleScatterFunction · 0.92
Example_timeSeriesFunction · 0.92
AddLinePointsFunction · 0.92
TestIssue540Function · 0.92
TestIssue540Function · 0.92
BenchmarkCanvasFunction · 0.92
TestPersistencyFunction · 0.92

Calls 1

NewScatterFunction · 0.85

Tested by 7

TestFloatPrecisionFunction · 0.74
ExampleScatterFunction · 0.74
Example_timeSeriesFunction · 0.74
TestIssue540Function · 0.74
TestIssue540Function · 0.74
BenchmarkCanvasFunction · 0.74
TestPersistencyFunction · 0.74