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

Function NewScatter

plotter/scatter.go:30–39  ·  view source on GitHub ↗

NewScatter returns a Scatter that uses the default glyph style.

(xys XYer)

Source from the content-addressed store, hash-verified

28// NewScatter returns a Scatter that uses the
29// default glyph style.
30func NewScatter(xys XYer) (*Scatter, error) {
31 data, err := CopyXYs(xys)
32 if err != nil {
33 return nil, err
34 }
35 return &Scatter{
36 XYs: data,
37 GlyphStyle: DefaultGlyphStyle,
38 }, err
39}
40
41// Plot draws the Scatter, implementing the plot.Plotter
42// interface.

Callers 15

TestIssue514Function · 0.92
ExampleScatter_colorFunction · 0.92
ExampleErrorsFunction · 0.92
ExampleScatterFunction · 0.92
ExampleScatter_bubblesFunction · 0.92
ExampleFunction · 0.92
AddScattersFunction · 0.92
ExampleFunction · 0.92
TestIssue179Function · 0.92
TestArcFunction · 0.92
TestNewWithFunction · 0.92

Calls 1

CopyXYsFunction · 0.85

Tested by 15

TestIssue514Function · 0.74
ExampleScatter_colorFunction · 0.74
ExampleErrorsFunction · 0.74
ExampleScatterFunction · 0.74
ExampleScatter_bubblesFunction · 0.74
ExampleFunction · 0.74
ExampleFunction · 0.74
TestIssue179Function · 0.74
TestArcFunction · 0.74
TestNewWithFunction · 0.74
TestHtmlEscapeFunction · 0.74