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

Method xLabel

plot/plotcore/ploteditor.go:257–269  ·  view source on GitHub ↗

xLabel returns the X-axis label

()

Source from the content-addressed store, hash-verified

255
256// xLabel returns the X-axis label
257func (pl *PlotEditor) xLabel() string {
258 if pl.Options.XAxisLabel != "" {
259 return pl.Options.XAxisLabel
260 }
261 if pl.Options.XAxis != "" {
262 cp := pl.ColumnOptions(pl.Options.XAxis)
263 if cp != nil {
264 return cp.getLabel()
265 }
266 return pl.Options.XAxis
267 }
268 return "X"
269}
270
271// GoUpdatePlot updates the display based on current IndexView into table.
272// This version can be called from goroutines. It does Sequential() on

Callers 1

configPlotMethod · 0.95

Calls 2

ColumnOptionsMethod · 0.95
getLabelMethod · 0.80

Tested by

no test coverage detected