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

Method entryHeight

legend.go:175–182  ·  view source on GitHub ↗

entryHeight returns the height of the tallest legend entry text.

()

Source from the content-addressed store, hash-verified

173// entryHeight returns the height of the tallest legend
174// entry text.
175func (l *Legend) entryHeight() (height vg.Length) {
176 for _, e := range l.entries {
177 if h := l.TextStyle.Rectangle(e.text).Max.Y; h > height {
178 height = h
179 }
180 }
181 return
182}
183
184// Add adds an entry to the legend with the given name.
185// The entry's thumbnail is drawn as the composite of all of the

Callers 2

DrawMethod · 0.95
RectangleMethod · 0.95

Calls 1

RectangleMethod · 0.45

Tested by

no test coverage detected