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)
| 369 | // the draw coordinate system of the given |
| 370 | // draw area. |
| 371 | func (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 |