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

Function PlotXYs

plot/data.go:169–175  ·  view source on GitHub ↗

PlotXYs returns plot coordinates for given set of XYs

(plt *Plot, data XYs)

Source from the content-addressed store, hash-verified

167
168// PlotXYs returns plot coordinates for given set of XYs
169func PlotXYs(plt *Plot, data XYs) XYs {
170 ps := make(XYs, len(data))
171 for i := range data {
172 ps[i].X, ps[i].Y = plt.PX(data[i].X), plt.PY(data[i].Y)
173 }
174 return ps
175}
176
177// XValues implements the Valuer interface,
178// returning the x value from an XYer.

Callers 3

PlotMethod · 0.92
PlotMethod · 0.92
PlotMethod · 0.92

Calls 2

PXMethod · 0.80
PYMethod · 0.80

Tested by

no test coverage detected