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

Method PX

plot/plot.go:211–213  ·  view source on GitHub ↗

PX returns the X-axis plotting coordinate for given raw data value using the current plot bounding region

(v float32)

Source from the content-addressed store, hash-verified

209// PX returns the X-axis plotting coordinate for given raw data value
210// using the current plot bounding region
211func (pt *Plot) PX(v float32) float32 {
212 return pt.PlotBox.ProjectX(pt.X.Norm(v))
213}
214
215// PY returns the Y-axis plotting coordinate for given raw data value
216func (pt *Plot) PY(v float32) float32 {

Callers 4

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

Calls 2

ProjectXMethod · 0.80
NormMethod · 0.80

Tested by

no test coverage detected