// Thumbnail the thumbnail for the Scatter, // implementing the plot.Thumbnailer interface. func (pts *Scatter) Thumbnail(c *draw.Canvas) { c.DrawGlyph(pts.GlyphStyle, c.Center()) }
// Plot draws the Scatter, implementing the plot.Plotter // interface. func (pts *Scatter) Plot(c draw.Canvas, plt *plot.Plot) { trX, trY := plt.Transforms(&c) for _, p := range pts.XYs { c.DrawGlyph(pts.GlyphStyle, draw.Point{trX(p.X), trY(p.Y)}) } }