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

Method yLabel

plot/plotcore/ploteditor.go:244–254  ·  view source on GitHub ↗

yLabel returns the Y-axis label

()

Source from the content-addressed store, hash-verified

242
243// yLabel returns the Y-axis label
244func (pl *PlotEditor) yLabel() string {
245 if pl.Options.YAxisLabel != "" {
246 return pl.Options.YAxisLabel
247 }
248 for _, cp := range pl.Columns {
249 if cp.On {
250 return cp.getLabel()
251 }
252 }
253 return "Y"
254}
255
256// xLabel returns the X-axis label
257func (pl *PlotEditor) xLabel() string {

Callers 1

configPlotMethod · 0.95

Calls 1

getLabelMethod · 0.80

Tested by

no test coverage detected