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

Function bottomMost

plot.go:352–365  ·  view source on GitHub ↗

bottomMost returns the bottom-most GlyphBox.

(c *draw.Canvas, boxes []GlyphBox)

Source from the content-addressed store, hash-verified

350
351// bottomMost returns the bottom-most GlyphBox.
352func bottomMost(c *draw.Canvas, boxes []GlyphBox) GlyphBox {
353 miny := c.Min.Y
354 l := GlyphBox{}
355 for _, b := range boxes {
356 if b.Size().Y <= 0 {
357 continue
358 }
359 if y := c.Y(b.Y) + b.Min.Y; y < miny && b.Y >= 0 {
360 miny = y
361 l = b
362 }
363 }
364 return l
365}
366
367// Transforms returns functions to transfrom
368// from the x and y data coordinate system to

Callers 1

padYFunction · 0.85

Calls 2

SizeMethod · 0.65
YMethod · 0.65

Tested by

no test coverage detected