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

Method XY

plot/plotcore/tablexy.go:215–222  ·  view source on GitHub ↗

XY returns an x, y pair at given row in table

(row int)

Source from the content-addressed store, hash-verified

213
214// XY returns an x, y pair at given row in table
215func (txy *tableXY) XY(row int) (x, y float32) {
216 if txy.table == nil || txy.table.Table == nil {
217 return 0, 0
218 }
219 x = txy.xValue(row)
220 y = txy.Value(row)
221 return
222}
223
224// Label returns a label for given row in table, implementing [plot.Labeler] interface
225func (txy *tableXY) Label(row int) string {

Callers

nothing calls this directly

Calls 2

xValueMethod · 0.95
ValueMethod · 0.95

Tested by

no test coverage detected