MCPcopy
hub / github.com/gonum/plot / Thumbnailer

Interface Thumbnailer

legend.go:71–77  ·  view source on GitHub ↗

Thumbnailer wraps the Thumbnail method, which draws the small image in a legend representing the style of data.

Source from the content-addressed store, hash-verified

69// draws the small image in a legend representing the
70// style of data.
71type Thumbnailer interface {
72 // Thumbnail draws an thumbnail representing
73 // a legend entry. The thumbnail will usually show
74 // a smaller representation of the style used
75 // to plot the corresponding data.
76 Thumbnail(c *draw.Canvas)
77}
78
79// NewLegend returns a legend with the default parameter settings.
80func NewLegend() Legend {

Callers 1

ThumbnailersMethod · 0.92

Implementers 9

exampleThumbnailerlegend_example_test.go
Lineplotter/line.go
sankeyFlowThumbnailerplotter/sankey.go
BarChartplotter/barchart.go
Polygonplotter/polygon.go
Scatterplotter/scatter.go
Histogramplotter/histogram.go
Functionplotter/functions.go
paletteThumbnailerplotter/palettethumbnailer.go

Calls

no outgoing calls

Tested by

no test coverage detected