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

Method DataRange

plot/plots/line.go:196–198  ·  view source on GitHub ↗

DataRange returns the minimum and maximum x and y values, implementing the plot.DataRanger interface.

()

Source from the content-addressed store, hash-verified

194// DataRange returns the minimum and maximum
195// x and y values, implementing the plot.DataRanger interface.
196func (pts *Line) DataRange() (xmin, xmax, ymin, ymax float32) {
197 return plot.XYRange(pts)
198}
199
200// Thumbnail returns the thumbnail for the LineTo, implementing the plot.Thumbnailer interface.
201func (pts *Line) Thumbnail(plt *plot.Plot) {

Callers

nothing calls this directly

Calls 1

XYRangeFunction · 0.92

Tested by

no test coverage detected