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)
| 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. |
| 220 | func (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. |
| 225 | func (a Axis) drawTicks() bool { |
no test coverage detected