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

Method Plot

plotter/glyphbox.go:29–41  ·  view source on GitHub ↗
(c draw.Canvas, plt *plot.Plot)

Source from the content-addressed store, hash-verified

27}
28
29func (g GlyphBoxes) Plot(c draw.Canvas, plt *plot.Plot) {
30 for _, b := range plt.GlyphBoxes(plt) {
31 x := c.X(b.X) + b.Rectangle.Min.X
32 y := c.Y(b.Y) + b.Rectangle.Min.Y
33 c.StrokeLines(g.LineStyle, []vg.Point{
34 {X: x, Y: y},
35 {X: x + b.Rectangle.Size().X, Y: y},
36 {X: x + b.Rectangle.Size().X, Y: y + b.Rectangle.Size().Y},
37 {X: x, Y: y + b.Rectangle.Size().Y},
38 {X: x, Y: y},
39 })
40 }
41}

Callers

nothing calls this directly

Calls 5

StrokeLinesMethod · 0.80
GlyphBoxesMethod · 0.65
XMethod · 0.65
YMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected