MCPcopy
hub / github.com/gonum/plot / newLegend

Function newLegend

legend.go:84–93  ·  view source on GitHub ↗
(hdlr text.Handler)

Source from the content-addressed store, hash-verified

82}
83
84func newLegend(hdlr text.Handler) Legend {
85 return Legend{
86 YPosition: draw.PosBottom,
87 ThumbnailWidth: vg.Points(20),
88 TextStyle: text.Style{
89 Font: font.From(DefaultFont, 12),
90 Handler: hdlr,
91 },
92 }
93}
94
95// Draw draws the legend to the given draw.Canvas.
96func (l *Legend) Draw(c draw.Canvas) {

Callers 2

NewLegendFunction · 0.85
NewFunction · 0.85

Calls 2

PointsFunction · 0.92
FromFunction · 0.92

Tested by

no test coverage detected