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

Method At

palette/palette.go:39–39  ·  view source on GitHub ↗

At returns the color associated with the given value. If the value is not between Max() and Min(), an error is returned.

(float64)

Source from the content-addressed store, hash-verified

37 // At returns the color associated with the given value.
38 // If the value is not between Max() and Min(), an error is returned.
39 At(float64) (color.Color, error)
40
41 // Max returns the current maximum value of the ColorMap.
42 Max() float64

Callers 15

AlignFunction · 0.65
DiffFunction · 0.65
ZMethod · 0.65
ExampleScatter_colorFunction · 0.65
ExampleField_colorsFunction · 0.65
transformForMethod · 0.65
PlotMethod · 0.65
ExamplePolygon_hexagonsFunction · 0.65
ZMethod · 0.65
ZMethod · 0.65
ZMethod · 0.65
AtMethod · 0.65

Implementers 2

luminancepalette/moreland/luminance.go
smoothDivergingpalette/moreland/smooth.go

Calls

no outgoing calls

Tested by 15

ZMethod · 0.52
ExampleScatter_colorFunction · 0.52
ExampleField_colorsFunction · 0.52
ExamplePolygon_hexagonsFunction · 0.52
ZMethod · 0.52
ZMethod · 0.52
ZMethod · 0.52
TestSmoothDiverging_AtFunction · 0.52
ZMethod · 0.52