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

Method Norm

axis.go:220–222  ·  view source on GitHub ↗

Norm returns the value of x, given in the data coordinate system, normalized to its distance as a fraction of the range of this axis. For example, if x is a.Min then the return value is 0, and if x is a.Max then the return value is 1.

(x float64)

Source from the content-addressed store, hash-verified

218// range of this axis. For example, if x is a.Min then the return
219// value is 0, and if x is a.Max then the return value is 1.
220func (a Axis) Norm(x float64) float64 {
221 return a.Scale.Normalize(a.Min, a.Max, x)
222}
223
224// drawTicks returns true if the tick marks should be drawn.
225func (a Axis) drawTicks() bool {

Callers 15

drawMethod · 0.80
GlyphBoxesMethod · 0.80
drawMethod · 0.80
GlyphBoxesMethod · 0.80
TransformsMethod · 0.80
GlyphBoxesMethod · 0.80
GlyphBoxesMethod · 0.80
GlyphBoxesMethod · 0.80
GlyphBoxesMethod · 0.80
GlyphBoxesMethod · 0.80
GlyphBoxesMethod · 0.80
transformForMethod · 0.80

Calls 1

NormalizeMethod · 0.65

Tested by

no test coverage detected