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

Method SetConvergePoint

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

SetConvergePoint sets the value where the diverging colors should meet. The default value should be expected to be (Min() + Max()) / 2. It should be expected that calling either SetMax() or SetMin() will set a new default value, so for a custom convergence point this function should be called after

(float64)

Source from the content-addressed store, hash-verified

77 // SetMax() and SetMin(). The function should be expected to panic
78 // if the value is not between Min() and Max().
79 SetConvergePoint(float64)
80
81 // ConvergePoint returns the value where the diverging colors meet.
82 ConvergePoint() float64

Callers 1

ExamplePolygon_hexagonsFunction · 0.65

Implementers 1

smoothDivergingpalette/moreland/smooth.go

Calls

no outgoing calls

Tested by 1

ExamplePolygon_hexagonsFunction · 0.52