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

Method getLabel

plot/plotcore/options.go:223–228  ·  view source on GitHub ↗

getLabel returns the effective label of the column.

()

Source from the content-addressed store, hash-verified

221
222// getLabel returns the effective label of the column.
223func (co *ColumnOptions) getLabel() string {
224 if co.Label != "" {
225 return co.Label
226 }
227 return co.Column
228}
229
230// fromMetaMap sets column options from meta data map.
231func (co *ColumnOptions) fromMetaMap(meta map[string]string) {

Callers 4

genPlotXYMethod · 0.80
genPlotBarMethod · 0.80
yLabelMethod · 0.80
xLabelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected