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

Method Add

legend.go:187–189  ·  view source on GitHub ↗

Add adds an entry to the legend with the given name. The entry's thumbnail is drawn as the composite of all of the thumbnails.

(name string, thumbs ...Thumbnailer)

Source from the content-addressed store, hash-verified

185// The entry's thumbnail is drawn as the composite of all of the
186// thumbnails.
187func (l *Legend) Add(name string, thumbs ...Thumbnailer) {
188 l.entries = append(l.entries, legendEntry{text: name, thumbs: thumbs})
189}

Callers 3

TestLegendAlignmentFunction · 0.95
ExampleLegend_standaloneFunction · 0.95
ExampleHeatMapFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestLegendAlignmentFunction · 0.76
ExampleLegend_standaloneFunction · 0.76
ExampleHeatMapFunction · 0.76