MCPcopy Create free account
hub / github.com/cogentcore/core / New

Function New

plot/plot.go:85–89  ·  view source on GitHub ↗

New returns a new plot with some reasonable default settings.

()

Source from the content-addressed store, hash-verified

83
84// New returns a new plot with some reasonable default settings.
85func New() *Plot {
86 pt := &Plot{}
87 pt.Defaults()
88 return pt
89}
90
91// Add adds a Plotters to the plot.
92//

Callers 10

TestLineFunction · 0.92
TestScatterFunction · 0.92
TestLabelsFunction · 0.92
TestBarChartFunction · 0.92
TestBarChartErrFunction · 0.92
TestBarChartStackFunction · 0.92
TestErrBarFunction · 0.92
genPlotXYMethod · 0.92
genPlotBarMethod · 0.92
TestPlotFunction · 0.70

Calls 1

DefaultsMethod · 0.95

Tested by 8

TestLineFunction · 0.74
TestScatterFunction · 0.74
TestLabelsFunction · 0.74
TestBarChartFunction · 0.74
TestBarChartErrFunction · 0.74
TestBarChartStackFunction · 0.74
TestErrBarFunction · 0.74
TestPlotFunction · 0.56