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

Method Transforms

plot.go:371–375  ·  view source on GitHub ↗

Transforms returns functions to transfrom from the x and y data coordinate system to the draw coordinate system of the given draw area.

(c *draw.Canvas)

Source from the content-addressed store, hash-verified

369// the draw coordinate system of the given
370// draw area.
371func (p *Plot) Transforms(c *draw.Canvas) (x, y func(float64) vg.Length) {
372 x = func(x float64) vg.Length { return c.X(p.X.Norm(x)) }
373 y = func(y float64) vg.Length { return c.Y(p.Y.Norm(y)) }
374 return
375}
376
377// GlyphBoxer wraps the GlyphBoxes method.
378// It should be implemented by things that meet

Callers 15

PlotMethod · 0.80
plotVectorizedMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
ExampleSankey_groupedFunction · 0.80
PlotMethod · 0.80
PlotMethod · 0.80

Calls 3

NormMethod · 0.80
XMethod · 0.65
YMethod · 0.65

Tested by 1

ExampleSankey_groupedFunction · 0.64