MCPcopy Create free account
hub / github.com/cogentcore/core / PY

Method PY

plot/plot.go:216–218  ·  view source on GitHub ↗

PY returns the Y-axis plotting coordinate for given raw data value

(v float32)

Source from the content-addressed store, hash-verified

214
215// PY returns the Y-axis plotting coordinate for given raw data value
216func (pt *Plot) PY(v float32) float32 {
217 return pt.PlotBox.ProjectY(1 - pt.Y.Norm(v))
218}
219
220// ClosestDataToPixel returns the Plotter data point closest to given pixel point,
221// in the Pixels image.

Callers 5

PlotXYsFunction · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80
PlotMethod · 0.80

Calls 2

ProjectYMethod · 0.80
NormMethod · 0.80

Tested by

no test coverage detected